Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 608524 Details for
Bug 817196
Running :python commands in vim causes a segfault
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
vim-7.3-py_ssize_t.patch
vim-7.3-py_ssize_t.patch (text/plain), 1.13 KB, created by
Aron Griffis
on 2012-08-31 13:43:16 UTC
(
hide
)
Description:
vim-7.3-py_ssize_t.patch
Filename:
MIME Type:
Creator:
Aron Griffis
Created:
2012-08-31 13:43:16 UTC
Size:
1.13 KB
patch
obsolete
>Date: Mon, 27 Aug 2012 20:08:51 -0700 >From: Sean Estabrooks <seanl...@sympatico.ca> >To: vim-dev@vim.org >Message-ID: <BLU0-SMTP4018EAD8F2DF00E62E043BAAEA10@phx.gbl> >Subject: [PATCH] Use proper return type when handling python output > >This removes the need for older code that avoided a crash >but meant that output wasn't displayed. >--- > src/if_py_both.h | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > >diff --git a/src/if_py_both.h b/src/if_py_both.h >index 60375d1..931ecb9 100644 >--- a/src/if_py_both.h >+++ b/src/if_py_both.h >@@ -74,18 +74,13 @@ static struct PyMethodDef OutputMethods[] = { > static PyObject * > OutputWrite(PyObject *self, PyObject *args) > { >- int len; >+ Py_ssize_t len; > char *str = NULL; > int error = ((OutputObject *)(self))->error; > > if (!PyArg_ParseTuple(args, "et#", ENC_OPT, &str, &len)) > return NULL; > >- /* TODO: This works around a gcc optimizer problem and avoids Vim >- * from crashing. Should find a real solution. */ >- if (str == NULL) >- return NULL; >- > Py_BEGIN_ALLOW_THREADS > Python_Lock_Vim(); > writer((writefn)(error ? emsg : msg), (char_u *)str, len); >-- >1.7.11.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 817196
:
580900
|
603642
|
608523
| 608524