Karsten Hopp 9fa34d
To: vim_dev@googlegroups.com
Karsten Hopp 9fa34d
Subject: Patch 7.3.1238
Karsten Hopp 9fa34d
Fcc: outbox
Karsten Hopp 9fa34d
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 9fa34d
Mime-Version: 1.0
Karsten Hopp 9fa34d
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 9fa34d
Content-Transfer-Encoding: 8bit
Karsten Hopp 9fa34d
------------
Karsten Hopp 9fa34d
Karsten Hopp 9fa34d
Patch 7.3.1238
Karsten Hopp 9fa34d
Problem:    Crash in Python interface on 64 bit machines.
Karsten Hopp 9fa34d
Solution:   Change argument type of PyString_AsStringAndSize. (Taro Muraoka,
Karsten Hopp 9fa34d
	    Jun Takimoto)
Karsten Hopp 9fa34d
Files:	    src/if_python.c
Karsten Hopp 9fa34d
Karsten Hopp 9fa34d
Karsten Hopp 9fa34d
*** ../vim-7.3.1237/src/if_python.c	2013-06-23 16:35:32.000000000 +0200
Karsten Hopp 9fa34d
--- src/if_python.c	2013-06-24 20:30:38.000000000 +0200
Karsten Hopp 9fa34d
***************
Karsten Hopp 9fa34d
*** 329,335 ****
Karsten Hopp 9fa34d
  static PyTypeObject* dll_PyLong_Type;
Karsten Hopp 9fa34d
  static PyObject*(*dll_PyList_GetItem)(PyObject *, PyInt);
Karsten Hopp 9fa34d
  static int(*dll_PyList_Append)(PyObject *, PyObject *);
Karsten Hopp 9fa34d
! static int(*dll_PyList_Insert)(PyObject *, int, PyObject *);
Karsten Hopp 9fa34d
  static PyObject*(*dll_PyList_New)(PyInt size);
Karsten Hopp 9fa34d
  static int(*dll_PyList_SetItem)(PyObject *, PyInt, PyObject *);
Karsten Hopp 9fa34d
  static PyInt(*dll_PyList_Size)(PyObject *);
Karsten Hopp 9fa34d
--- 329,335 ----
Karsten Hopp 9fa34d
  static PyTypeObject* dll_PyLong_Type;
Karsten Hopp 9fa34d
  static PyObject*(*dll_PyList_GetItem)(PyObject *, PyInt);
Karsten Hopp 9fa34d
  static int(*dll_PyList_Append)(PyObject *, PyObject *);
Karsten Hopp 9fa34d
! static int(*dll_PyList_Insert)(PyObject *, PyInt, PyObject *);
Karsten Hopp 9fa34d
  static PyObject*(*dll_PyList_New)(PyInt size);
Karsten Hopp 9fa34d
  static int(*dll_PyList_SetItem)(PyObject *, PyInt, PyObject *);
Karsten Hopp 9fa34d
  static PyInt(*dll_PyList_Size)(PyObject *);
Karsten Hopp 9fa34d
***************
Karsten Hopp 9fa34d
*** 365,371 ****
Karsten Hopp 9fa34d
  static PyObject* (*dll_PyObject_Call)(PyObject *, PyObject *, PyObject *);
Karsten Hopp 9fa34d
  static PyObject* (*dll_PyObject_Repr)(PyObject *);
Karsten Hopp 9fa34d
  static char*(*dll_PyString_AsString)(PyObject *);
Karsten Hopp 9fa34d
! static int(*dll_PyString_AsStringAndSize)(PyObject *, char **, int *);
Karsten Hopp 9fa34d
  static PyObject*(*dll_PyString_FromString)(const char *);
Karsten Hopp 9fa34d
  static PyObject*(*dll_PyString_FromFormat)(const char *, ...);
Karsten Hopp 9fa34d
  static PyObject*(*dll_PyString_FromStringAndSize)(const char *, PyInt);
Karsten Hopp 9fa34d
--- 365,371 ----
Karsten Hopp 9fa34d
  static PyObject* (*dll_PyObject_Call)(PyObject *, PyObject *, PyObject *);
Karsten Hopp 9fa34d
  static PyObject* (*dll_PyObject_Repr)(PyObject *);
Karsten Hopp 9fa34d
  static char*(*dll_PyString_AsString)(PyObject *);
Karsten Hopp 9fa34d
! static int(*dll_PyString_AsStringAndSize)(PyObject *, char **, PyInt *);
Karsten Hopp 9fa34d
  static PyObject*(*dll_PyString_FromString)(const char *);
Karsten Hopp 9fa34d
  static PyObject*(*dll_PyString_FromFormat)(const char *, ...);
Karsten Hopp 9fa34d
  static PyObject*(*dll_PyString_FromStringAndSize)(const char *, PyInt);
Karsten Hopp 9fa34d
*** ../vim-7.3.1237/src/version.c	2013-06-23 16:40:34.000000000 +0200
Karsten Hopp 9fa34d
--- src/version.c	2013-06-24 20:26:29.000000000 +0200
Karsten Hopp 9fa34d
***************
Karsten Hopp 9fa34d
*** 730,731 ****
Karsten Hopp 9fa34d
--- 730,733 ----
Karsten Hopp 9fa34d
  {   /* Add new patch number below this line */
Karsten Hopp 9fa34d
+ /**/
Karsten Hopp 9fa34d
+     1238,
Karsten Hopp 9fa34d
  /**/
Karsten Hopp 9fa34d
Karsten Hopp 9fa34d
-- 
Karsten Hopp 9fa34d
       When danger reared its ugly head,
Karsten Hopp 9fa34d
       He bravely turned his tail and fled
Karsten Hopp 9fa34d
       Yes, Brave Sir Robin turned about
Karsten Hopp 9fa34d
       And gallantly he chickened out
Karsten Hopp 9fa34d
       Bravely taking to his feet
Karsten Hopp 9fa34d
       He beat a very brave retreat
Karsten Hopp 9fa34d
       Bravest of the brave Sir Robin
Karsten Hopp 9fa34d
       Petrified of being dead
Karsten Hopp 9fa34d
       Soiled his pants then brave Sir Robin
Karsten Hopp 9fa34d
       Turned away and fled.
Karsten Hopp 9fa34d
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 9fa34d
Karsten Hopp 9fa34d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 9fa34d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 9fa34d
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 9fa34d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///