[vim] - patchlevel 373

Karsten Hopp karsten at fedoraproject.org
Fri Dec 23 21:32:59 UTC 2011


commit 24582d5fc6f99d4357969f99051e22df6f1c0386
Author: Karsten Hopp <karsten at redhat.com>
Date:   Fri Dec 23 22:30:56 2011 +0100

    - patchlevel 373

 7.3.373 |   78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/7.3.373 b/7.3.373
new file mode 100644
index 0000000..3e8937a
--- /dev/null
+++ b/7.3.373
@@ -0,0 +1,78 @@
+To: vim_dev at googlegroups.com
+Subject: Patch 7.3.373
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.3.373 (after 7.3.366)
+Problem:    A tags file with an extremely long name may cause an infinite loop.
+Solution:   When encountering a long name switch to linear search.
+Files:	    src/tag.c
+
+
+*** ../vim-7.3.372/src/tag.c	2011-12-08 15:12:08.000000000 +0100
+--- src/tag.c	2011-12-14 14:13:28.000000000 +0100
+***************
+*** 1854,1860 ****
+  
+  		if (state == TS_BINARY && orgpat.regmatch.rm_ic && !sortic)
+  		{
+! 		    /* binary search won't work for ignoring case, use linear
+  		     * search. */
+  		    linear = TRUE;
+  		    state = TS_LINEAR;
+--- 1854,1860 ----
+  
+  		if (state == TS_BINARY && orgpat.regmatch.rm_ic && !sortic)
+  		{
+! 		    /* Binary search won't work for ignoring case, use linear
+  		     * search. */
+  		    linear = TRUE;
+  		    state = TS_LINEAR;
+***************
+*** 1922,1927 ****
+--- 1922,1940 ----
+  			    MSG(_("Ignoring long line in tags file"));
+  			    verbose_leave();
+  			}
++ #ifdef FEAT_TAG_BINS
++ 			if (state != TS_LINEAR)
++ 			{
++ 			    /* Avoid getting stuck. */
++ 			    linear = TRUE;
++ 			    state = TS_LINEAR;
++ # ifdef HAVE_FSEEKO
++ 			    fseeko(fp, search_info.low_offset, SEEK_SET);
++ # else
++ 			    fseek(fp, (long)search_info.low_offset, SEEK_SET);
++ # endif
++ 			}
++ #endif
+  			continue;
+  		    }
+  
+*** ../vim-7.3.372/src/version.c	2011-12-08 18:44:47.000000000 +0100
+--- src/version.c	2011-12-14 14:12:06.000000000 +0100
+***************
+*** 716,717 ****
+--- 716,719 ----
+  {   /* Add new patch number below this line */
++ /**/
++     373,
+  /**/
+
+-- 
+ZOOT:  I'm afraid our life must seem very dull and quiet compared to yours.
+       We are but eightscore young blondes, all between sixteen and
+       nineteen-and-a-half, cut off in this castle, with no one to protect us.
+       Oooh.  It is a lonely life ... bathing ...  dressing ... undressing ...
+       making exciting underwear....
+                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\  an exciting new programming language -- http://www.Zimbu.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


More information about the scm-commits mailing list