Karsten Hopp 6d927f
To: vim_dev@googlegroups.com
Karsten Hopp 6d927f
Subject: Patch 7.3.908
Karsten Hopp 6d927f
Fcc: outbox
Karsten Hopp 6d927f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 6d927f
Mime-Version: 1.0
Karsten Hopp 6d927f
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 6d927f
Content-Transfer-Encoding: 8bit
Karsten Hopp 6d927f
------------
Karsten Hopp 6d927f
Karsten Hopp 6d927f
Patch 7.3.908
Karsten Hopp 6d927f
Problem:    Possible crash when using a list in Python.
Karsten Hopp 6d927f
Solution:   Return early if the list is NULL. (ZyX)
Karsten Hopp 6d927f
Files:	    src/if_py_both.h
Karsten Hopp 6d927f
Karsten Hopp 6d927f
Karsten Hopp 6d927f
*** ../vim-7.3.907/src/if_py_both.h	2013-04-24 13:04:21.000000000 +0200
Karsten Hopp 6d927f
--- src/if_py_both.h	2013-04-24 13:10:20.000000000 +0200
Karsten Hopp 6d927f
***************
Karsten Hopp 6d927f
*** 738,743 ****
Karsten Hopp 6d927f
--- 738,745 ----
Karsten Hopp 6d927f
      tv->vval.v_dict = d;
Karsten Hopp 6d927f
  
Karsten Hopp 6d927f
      list = PyMapping_Items(obj);
Karsten Hopp 6d927f
+     if (list == NULL)
Karsten Hopp 6d927f
+ 	return -1;
Karsten Hopp 6d927f
      lsize = PyList_Size(list);
Karsten Hopp 6d927f
      while (lsize--)
Karsten Hopp 6d927f
      {
Karsten Hopp 6d927f
*** ../vim-7.3.907/src/version.c	2013-04-24 13:04:21.000000000 +0200
Karsten Hopp 6d927f
--- src/version.c	2013-04-24 13:09:30.000000000 +0200
Karsten Hopp 6d927f
***************
Karsten Hopp 6d927f
*** 730,731 ****
Karsten Hopp 6d927f
--- 730,733 ----
Karsten Hopp 6d927f
  {   /* Add new patch number below this line */
Karsten Hopp 6d927f
+ /**/
Karsten Hopp 6d927f
+     908,
Karsten Hopp 6d927f
  /**/
Karsten Hopp 6d927f
Karsten Hopp 6d927f
-- 
Karsten Hopp 6d927f
How do I set the laser printer to stun? 
Karsten Hopp 6d927f
Karsten Hopp 6d927f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 6d927f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 6d927f
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 6d927f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///