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