Karsten Hopp 1ea0a1
To: vim_dev@googlegroups.com
Karsten Hopp 1ea0a1
Subject: Patch 7.4.625
Karsten Hopp 1ea0a1
Fcc: outbox
Karsten Hopp 1ea0a1
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 1ea0a1
Mime-Version: 1.0
Karsten Hopp 1ea0a1
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 1ea0a1
Content-Transfer-Encoding: 8bit
Karsten Hopp 1ea0a1
------------
Karsten Hopp 1ea0a1
Karsten Hopp 1ea0a1
Patch 7.4.625
Karsten Hopp 1ea0a1
Problem:    Possible NULL pointer dereference.
Karsten Hopp 1ea0a1
Solution:   Check for NULL before using it. (Mike Williams)
Karsten Hopp 1ea0a1
Files:	    src/if_py_both.h
Karsten Hopp 1ea0a1
Karsten Hopp 1ea0a1
Karsten Hopp 1ea0a1
*** ../vim-7.4.624/src/if_py_both.h	2015-02-03 12:55:11.136179596 +0100
Karsten Hopp 1ea0a1
--- src/if_py_both.h	2015-02-10 18:39:40.531839555 +0100
Karsten Hopp 1ea0a1
***************
Karsten Hopp 1ea0a1
*** 747,758 ****
Karsten Hopp 1ea0a1
      else if (our_tv->v_type == VAR_DICT)
Karsten Hopp 1ea0a1
      {
Karsten Hopp 1ea0a1
  
Karsten Hopp 1ea0a1
! 	hashtab_T	*ht = &our_tv->vval.v_dict->dv_hashtab;
Karsten Hopp 1ea0a1
! 	long_u	todo = ht->ht_used;
Karsten Hopp 1ea0a1
  	hashitem_T	*hi;
Karsten Hopp 1ea0a1
  	dictitem_T	*di;
Karsten Hopp 1ea0a1
  	if (our_tv->vval.v_dict == NULL)
Karsten Hopp 1ea0a1
  	    return NULL;
Karsten Hopp 1ea0a1
  
Karsten Hopp 1ea0a1
  	if (!(ret = PyDict_New()))
Karsten Hopp 1ea0a1
  	    return NULL;
Karsten Hopp 1ea0a1
--- 747,760 ----
Karsten Hopp 1ea0a1
      else if (our_tv->v_type == VAR_DICT)
Karsten Hopp 1ea0a1
      {
Karsten Hopp 1ea0a1
  
Karsten Hopp 1ea0a1
! 	hashtab_T	*ht;
Karsten Hopp 1ea0a1
! 	long_u		todo;
Karsten Hopp 1ea0a1
  	hashitem_T	*hi;
Karsten Hopp 1ea0a1
  	dictitem_T	*di;
Karsten Hopp 1ea0a1
+ 
Karsten Hopp 1ea0a1
  	if (our_tv->vval.v_dict == NULL)
Karsten Hopp 1ea0a1
  	    return NULL;
Karsten Hopp 1ea0a1
+ 	ht = &our_tv->vval.v_dict->dv_hashtab;
Karsten Hopp 1ea0a1
  
Karsten Hopp 1ea0a1
  	if (!(ret = PyDict_New()))
Karsten Hopp 1ea0a1
  	    return NULL;
Karsten Hopp 1ea0a1
***************
Karsten Hopp 1ea0a1
*** 763,768 ****
Karsten Hopp 1ea0a1
--- 765,771 ----
Karsten Hopp 1ea0a1
  	    return NULL;
Karsten Hopp 1ea0a1
  	}
Karsten Hopp 1ea0a1
  
Karsten Hopp 1ea0a1
+ 	todo = ht->ht_used;
Karsten Hopp 1ea0a1
  	for (hi = ht->ht_array; todo > 0; ++hi)
Karsten Hopp 1ea0a1
  	{
Karsten Hopp 1ea0a1
  	    if (!HASHITEM_EMPTY(hi))
Karsten Hopp 1ea0a1
*** ../vim-7.4.624/src/version.c	2015-02-10 18:33:53.240319951 +0100
Karsten Hopp 1ea0a1
--- src/version.c	2015-02-10 18:38:37.364655345 +0100
Karsten Hopp 1ea0a1
***************
Karsten Hopp 1ea0a1
*** 743,744 ****
Karsten Hopp 1ea0a1
--- 743,746 ----
Karsten Hopp 1ea0a1
  {   /* Add new patch number below this line */
Karsten Hopp 1ea0a1
+ /**/
Karsten Hopp 1ea0a1
+     625,
Karsten Hopp 1ea0a1
  /**/
Karsten Hopp 1ea0a1
Karsten Hopp 1ea0a1
-- 
Karsten Hopp 1ea0a1
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 1ea0a1
212. Your Internet group window has more icons than your Accessories window.
Karsten Hopp 1ea0a1
Karsten Hopp 1ea0a1
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 1ea0a1
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 1ea0a1
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 1ea0a1
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///