summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/devtodo/files/devtodo-0.1.19-fix-multiline-segv.diff')
-rw-r--r--app-misc/devtodo/files/devtodo-0.1.19-fix-multiline-segv.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-misc/devtodo/files/devtodo-0.1.19-fix-multiline-segv.diff b/app-misc/devtodo/files/devtodo-0.1.19-fix-multiline-segv.diff
new file mode 100644
index 000000000000..5eb38ea7f0be
--- /dev/null
+++ b/app-misc/devtodo/files/devtodo-0.1.19-fix-multiline-segv.diff
@@ -0,0 +1,12 @@
+diff --exclude='*~' --exclude='.*' -I '$Id:' -urN devtodo-0.1.19.orig/util/XML.cc devtodo-0.1.19/util/XML.cc
+--- devtodo-0.1.19.orig/util/XML.cc 2005-10-29 11:02:17.000000000 -0400
++++ devtodo-0.1.19/util/XML.cc 2005-10-29 11:03:39.000000000 -0400
+@@ -51,7 +51,7 @@
+ "*[[:space:]]*(/?)>");
+ xmlScan.addPattern(XmlEnd, "</[a-zA-Z0-9_-]+>");
+ xmlScan.addPattern(XmlDataBegin, "<!DATA[[:space:]]*\\[\\[");
+- xmlScan.addPattern(XmlContent, "([^<]|[\n\r])+");
++ xmlScan.addPattern(XmlContent, "([\n\r]|[^<])+");
+
+ commentScan.addPattern(CommentEnd, "-->[[:space:]]*");
+ commentScan.addPattern(CommentBody, "[\n\r]|.");