1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Interrupting the load of an autoload function may cause a crash.
12 Solution: Do not use the hashitem when not valid. (Yukihiro Nakadaira)
16 *** ../vim-7.3.359/src/eval.c 2011-11-30 14:57:26.000000000 +0100
17 --- src/eval.c 2011-11-30 15:06:53.000000000 +0100
20 * worked find the variable again. Don't auto-load a script if it was
21 * loaded already, otherwise it would be loaded every time when
22 * checking if a function name is a Funcref variable. */
23 ! if (ht == &globvarht && !writing
24 ! && script_autoload(varname, FALSE) && !aborting())
25 hi = hash_find(ht, varname);
26 if (HASHITEM_EMPTY(hi))
30 * worked find the variable again. Don't auto-load a script if it was
31 * loaded already, otherwise it would be loaded every time when
32 * checking if a function name is a Funcref variable. */
33 ! if (ht == &globvarht && !writing)
35 ! /* Note: script_autoload() may make "hi" invalid. It must either
36 ! * be obtained again or not used. */
37 ! if (!script_autoload(varname, FALSE) || aborting())
39 hi = hash_find(ht, varname);
41 if (HASHITEM_EMPTY(hi))
44 *** ../vim-7.3.359/src/version.c 2011-11-30 14:57:26.000000000 +0100
45 --- src/version.c 2011-11-30 15:17:28.000000000 +0100
49 { /* Add new patch number below this line */
55 hundred-and-one symptoms of being an internet addict:
56 217. Your sex life has drastically improved...so what if it's only cyber-sex!
58 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
59 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
60 \\\ an exciting new programming language -- http://www.Zimbu.org ///
61 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///