To: vim_dev@googlegroups.com Subject: Patch 8.2.3407 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3407 Problem: Using uninitialized memory with "let g:['bar'] = 2". Solution: Initialize v_type of a new dict item. Files: src/dict.c *** ../vim-8.2.3406/src/dict.c 2021-08-12 19:27:46.458459623 +0200 --- src/dict.c 2021-09-06 19:18:18.427937934 +0200 *************** *** 229,234 **** --- 229,235 ---- STRCPY(di->di_key, key); di->di_flags = DI_FLAGS_ALLOC; di->di_tv.v_lock = 0; + di->di_tv.v_type = VAR_UNKNOWN; } return di; } *** ../vim-8.2.3406/src/version.c 2021-09-06 18:57:25.270231387 +0200 --- src/version.c 2021-09-06 19:18:37.427903206 +0200 *************** *** 757,758 **** --- 757,760 ---- { /* Add new patch number below this line */ + /**/ + 3407, /**/ -- A consultant is a person who takes your money and annoys your employees while tirelessly searching for the best way to extend the consulting contract. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///