Patch 8.1.1465
Problem:    Allocating wrong amount of memory. (Yegappan Lakshmanan)
Solution:   Use sizeof() for right type of struct.
Files:      src/memfile_test.c


*** ../vim-8.1.1464/src/memfile_test.c  2019-05-28 23:08:12.068648696 +0200
--- src/memfile_test.c  2019-06-04 22:25:02.116924696 +0200
***************
*** 67,73 ****
        assert(mf_hash_find(&ht, key) == NULL);
  
        /* allocate and add new item */
!       item = LALLOC_CLEAR_ONE(mf_hashtab_T);
        assert(item != NULL);
        item->mhi_key = key;
        mf_hash_add_item(&ht, item);
--- 67,73 ----
        assert(mf_hash_find(&ht, key) == NULL);
  
        /* allocate and add new item */
!       item = LALLOC_CLEAR_ONE(mf_hashitem_T);
        assert(item != NULL);
        item->mhi_key = key;
        mf_hash_add_item(&ht, item);
*** ../vim-8.1.1464/src/version.c       2019-06-04 21:41:24.465087519 +0200
--- src/version.c       2019-06-04 22:25:58.068551965 +0200
***************
*** 769,770 ****
--- 769,772 ----
  {   /* Add new patch number below this line */
+ /**/
+     1465,
  /**/

-- 
>From "know your smileys":
 :'-D   Laughing so much that they're crying

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201906042029.x54KTSCJ016763%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui