To: vim-dev@vim.org Subject: Patch 6.1.326 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.326 Problem: Using a search pattern may read from uninitialized data (Yasuhiro Matsumoto) Solution: Initialize pointers to NULL. Files: src/regexp.c *** ../vim61.325/src/regexp.c Fri Jan 3 22:48:00 2003 --- src/regexp.c Sun Feb 16 16:10:21 2003 *************** *** 2625,2634 **** */ static regmatch_T *reg_match; static regmmatch_T *reg_mmatch; ! static char_u **reg_startp; ! static char_u **reg_endp; ! static lpos_T *reg_startpos; ! static lpos_T *reg_endpos; static win_T *reg_win; static buf_T *reg_buf; static linenr_T reg_firstlnum; --- 2645,2654 ---- */ static regmatch_T *reg_match; static regmmatch_T *reg_mmatch; ! static char_u **reg_startp = NULL; ! static char_u **reg_endp = NULL; ! static lpos_T *reg_startpos = NULL; ! static lpos_T *reg_endpos = NULL; static win_T *reg_win; static buf_T *reg_buf; static linenr_T reg_firstlnum; *** ../vim61.325/src/version.c Sun Feb 16 21:22:22 2003 --- src/version.c Sun Feb 16 21:28:49 2003 *************** *** 608,609 **** --- 612,615 ---- { /* Add new patch number below this line */ + /**/ + 326, /**/ -- Two fish in a tank. One says to the other: "Do you know how to drive this thing?" /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///