To: vim-dev@vim.org Subject: Patch 7.2b.006 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 7.2b.006 Problem: Reading past end of string when reading info from tags line. Solution: Break the loop when encountering a NUL. (Dominique Pelle) Files: src/tag.c *** ../vim-7.2b.005/src/tag.c Sun Jul 13 19:15:19 2008 --- src/tag.c Wed Jul 16 23:31:30 2008 *************** *** 3854,3859 **** --- 3854,3861 ---- /* Skip field without colon. */ while (*p != NUL && *p >= ' ') ++p; + if (*p == NUL) + break; } } } *** ../vim-7.2b.005/src/version.c Wed Jul 16 22:42:51 2008 --- src/version.c Fri Jul 18 11:25:04 2008 *************** *** 678,679 **** --- 678,681 ---- { /* Add new patch number below this line */ + /**/ + 6, /**/ -- Women are probably the main cause of free software starvation. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///