|
Karsten Hopp |
a9d4f8 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
a9d4f8 |
Subject: Patch 7.3.366
|
|
Karsten Hopp |
a9d4f8 |
Fcc: outbox
|
|
Karsten Hopp |
a9d4f8 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
a9d4f8 |
Mime-Version: 1.0
|
|
Karsten Hopp |
a9d4f8 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
a9d4f8 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
a9d4f8 |
------------
|
|
Karsten Hopp |
a9d4f8 |
|
|
Karsten Hopp |
a9d4f8 |
Patch 7.3.366
|
|
Karsten Hopp |
a9d4f8 |
Problem: A tags file with an extremely long name causes errors.
|
|
Karsten Hopp |
a9d4f8 |
Solution: Ignore tags that are too long. (Arno Renevier)
|
|
Karsten Hopp |
a9d4f8 |
Files: src/tag.c
|
|
Karsten Hopp |
a9d4f8 |
|
|
Karsten Hopp |
a9d4f8 |
|
|
Karsten Hopp |
a9d4f8 |
*** ../vim-7.3.365/src/tag.c 2011-10-12 19:53:31.000000000 +0200
|
|
Karsten Hopp |
a9d4f8 |
--- src/tag.c 2011-12-08 13:32:51.000000000 +0100
|
|
Karsten Hopp |
a9d4f8 |
***************
|
|
Karsten Hopp |
a9d4f8 |
*** 1906,1917 ****
|
|
Karsten Hopp |
a9d4f8 |
tagp.tagname = lbuf;
|
|
Karsten Hopp |
a9d4f8 |
#ifdef FEAT_TAG_ANYWHITE
|
|
Karsten Hopp |
a9d4f8 |
tagp.tagname_end = skiptowhite(lbuf);
|
|
Karsten Hopp |
a9d4f8 |
! if (*tagp.tagname_end == NUL) /* corrupted tag line */
|
|
Karsten Hopp |
a9d4f8 |
#else
|
|
Karsten Hopp |
a9d4f8 |
tagp.tagname_end = vim_strchr(lbuf, TAB);
|
|
Karsten Hopp |
a9d4f8 |
! if (tagp.tagname_end == NULL) /* corrupted tag line */
|
|
Karsten Hopp |
a9d4f8 |
#endif
|
|
Karsten Hopp |
a9d4f8 |
{
|
|
Karsten Hopp |
a9d4f8 |
line_error = TRUE;
|
|
Karsten Hopp |
a9d4f8 |
break;
|
|
Karsten Hopp |
a9d4f8 |
}
|
|
Karsten Hopp |
a9d4f8 |
--- 1906,1931 ----
|
|
Karsten Hopp |
a9d4f8 |
tagp.tagname = lbuf;
|
|
Karsten Hopp |
a9d4f8 |
#ifdef FEAT_TAG_ANYWHITE
|
|
Karsten Hopp |
a9d4f8 |
tagp.tagname_end = skiptowhite(lbuf);
|
|
Karsten Hopp |
a9d4f8 |
! if (*tagp.tagname_end == NUL)
|
|
Karsten Hopp |
a9d4f8 |
#else
|
|
Karsten Hopp |
a9d4f8 |
tagp.tagname_end = vim_strchr(lbuf, TAB);
|
|
Karsten Hopp |
a9d4f8 |
! if (tagp.tagname_end == NULL)
|
|
Karsten Hopp |
a9d4f8 |
#endif
|
|
Karsten Hopp |
a9d4f8 |
{
|
|
Karsten Hopp |
a9d4f8 |
+ if (vim_strchr(lbuf, NL) == NULL)
|
|
Karsten Hopp |
a9d4f8 |
+ {
|
|
Karsten Hopp |
a9d4f8 |
+ /* Truncated line, ignore it. Has been reported for
|
|
Karsten Hopp |
a9d4f8 |
+ * Mozilla JS with extremely long names. */
|
|
Karsten Hopp |
a9d4f8 |
+ if (p_verbose >= 5)
|
|
Karsten Hopp |
a9d4f8 |
+ {
|
|
Karsten Hopp |
a9d4f8 |
+ verbose_enter();
|
|
Karsten Hopp |
a9d4f8 |
+ MSG(_("Ignoring long line in tags file"));
|
|
Karsten Hopp |
a9d4f8 |
+ verbose_leave();
|
|
Karsten Hopp |
a9d4f8 |
+ }
|
|
Karsten Hopp |
a9d4f8 |
+ continue;
|
|
Karsten Hopp |
a9d4f8 |
+ }
|
|
Karsten Hopp |
a9d4f8 |
+
|
|
Karsten Hopp |
a9d4f8 |
+ /* Corrupted tag line. */
|
|
Karsten Hopp |
a9d4f8 |
line_error = TRUE;
|
|
Karsten Hopp |
a9d4f8 |
break;
|
|
Karsten Hopp |
a9d4f8 |
}
|
|
Karsten Hopp |
a9d4f8 |
*** ../vim-7.3.365/src/version.c 2011-12-08 15:09:46.000000000 +0100
|
|
Karsten Hopp |
a9d4f8 |
--- src/version.c 2011-12-08 15:11:10.000000000 +0100
|
|
Karsten Hopp |
a9d4f8 |
***************
|
|
Karsten Hopp |
a9d4f8 |
*** 716,717 ****
|
|
Karsten Hopp |
a9d4f8 |
--- 716,719 ----
|
|
Karsten Hopp |
a9d4f8 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
a9d4f8 |
+ /**/
|
|
Karsten Hopp |
a9d4f8 |
+ 366,
|
|
Karsten Hopp |
a9d4f8 |
/**/
|
|
Karsten Hopp |
a9d4f8 |
|
|
Karsten Hopp |
a9d4f8 |
--
|
|
Karsten Hopp |
a9d4f8 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
a9d4f8 |
246. You use up your free 100 hours in less than a week.
|
|
Karsten Hopp |
a9d4f8 |
|
|
Karsten Hopp |
a9d4f8 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
a9d4f8 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
a9d4f8 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
a9d4f8 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|