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: A tags file with an extremely long name causes errors.
12 Solution: Ignore tags that are too long. (Arno Renevier)
16 *** ../vim-7.3.365/src/tag.c 2011-10-12 19:53:31.000000000 +0200
17 --- src/tag.c 2011-12-08 13:32:51.000000000 +0100
21 #ifdef FEAT_TAG_ANYWHITE
22 tagp.tagname_end = skiptowhite(lbuf);
23 ! if (*tagp.tagname_end == NUL) /* corrupted tag line */
25 tagp.tagname_end = vim_strchr(lbuf, TAB);
26 ! if (tagp.tagname_end == NULL) /* corrupted tag line */
34 #ifdef FEAT_TAG_ANYWHITE
35 tagp.tagname_end = skiptowhite(lbuf);
36 ! if (*tagp.tagname_end == NUL)
38 tagp.tagname_end = vim_strchr(lbuf, TAB);
39 ! if (tagp.tagname_end == NULL)
42 + if (vim_strchr(lbuf, NL) == NULL)
44 + /* Truncated line, ignore it. Has been reported for
45 + * Mozilla JS with extremely long names. */
49 + MSG(_("Ignoring long line in tags file"));
55 + /* Corrupted tag line. */
59 *** ../vim-7.3.365/src/version.c 2011-12-08 15:09:46.000000000 +0100
60 --- src/version.c 2011-12-08 15:11:10.000000000 +0100
64 { /* Add new patch number below this line */
70 hundred-and-one symptoms of being an internet addict:
71 246. You use up your free 100 hours in less than a week.
73 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
74 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
75 \\\ an exciting new programming language -- http://www.Zimbu.org ///
76 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///