SF.net SVN: geany:[5540] trunk
frlan at users.sourceforge.net
frlan at xxxxx
Sun Feb 6 18:25:11 UTC 2011
Revision: 5540
http://geany.svn.sourceforge.net/geany/?rev=5540&view=rev
Author: frlan
Date: 2011-02-06 18:25:10 +0000 (Sun, 06 Feb 2011)
Log Message:
-----------
Add a workaround for #3066566 to prevent Geany from crashing during loading of a LaTeX-file containing linebreaks inside headings.
Modified Paths:
--------------
trunk/ChangeLog
trunk/tagmanager/latex.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-02-06 16:47:18 UTC (rev 5539)
+++ trunk/ChangeLog 2011-02-06 18:25:10 UTC (rev 5540)
@@ -1,3 +1,10 @@
+2011-02-06 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+
+ * tagmanager/latex.c:
+ Add a workaround for #3066566 to prevent Geany from crashing during
+ loading of a LaTeX-file containing linebreaks inside headings.
+
+
2011-02-06 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* tagmanager/php.c:
Modified: trunk/tagmanager/latex.c
===================================================================
--- trunk/tagmanager/latex.c 2011-02-06 16:47:18 UTC (rev 5539)
+++ trunk/tagmanager/latex.c 2011-02-06 18:25:10 UTC (rev 5540)
@@ -83,9 +83,13 @@
if (*l == '[')
{
while (*l != ']')
+ {
+ if (*l == '\0')
+ goto no_tag;
l++;
+ }
l++; /* skip the closing square bracket */
- }
+ }
if (*l != '{')
goto no_tag;
l++;
@@ -240,4 +244,3 @@
def->parser = findTeXTags;
return def;
}
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list