4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: A negative column argument in setpos() may cause a crash.
12 Solution: Check for invalid column number. (James Vega)
13 Files: src/eval.c, src/misc2.c
16 *** ../vim-7.2.323/src/eval.c 2009-12-24 15:00:31.000000000 +0100
17 --- src/eval.c 2009-12-31 13:09:19.000000000 +0100
21 if (list2fpos(&argvars[1], &pos, &fnum) == OK)
24 if (name[0] == '.' && name[1] == NUL)
29 if (list2fpos(&argvars[1], &pos, &fnum) == OK)
33 if (name[0] == '.' && name[1] == NUL)
36 *** ../vim-7.2.323/src/misc2.c 2009-11-25 17:15:16.000000000 +0100
37 --- src/misc2.c 2009-12-31 13:12:36.000000000 +0100
44 + else if (curwin->w_cursor.col < 0)
45 + curwin->w_cursor.col = 0;
47 #ifdef FEAT_VIRTUALEDIT
48 /* If virtual editing is on, we can leave the cursor on the old position,
49 *** ../vim-7.2.323/src/version.c 2009-12-24 16:11:24.000000000 +0100
50 --- src/version.c 2009-12-31 13:17:25.000000000 +0100
54 { /* Add new patch number below this line */
60 "Thou shalt not follow the Null Pointer, for at its end Chaos and
63 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
64 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
65 \\\ download, build and distribute -- http://www.A-A-P.org ///
66 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///