diff options
author | Koop Mast <kwm@FreeBSD.org> | 2009-09-16 15:20:17 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2009-09-16 15:20:17 +0000 |
commit | 869d16f3422df8a4123285f3d610f580efe9c2fa (patch) | |
tree | 48965d4c0420bd32efbddfe445347272cacec508 /textproc/libxml2/files | |
parent | - Update to 4.78.9 (diff) |
Add a upstream patch that fixes runtime problem with inkscape.
Noticed by: Ashish SHUKLA <wahjava.ml@gmail.com>
Submitted by: Romain Tarti`ere <romain@blogreen.org> [1]
Obtained from: Gnome Git [1]
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=241528
Diffstat (limited to 'textproc/libxml2/files')
-rw-r--r-- | textproc/libxml2/files/patch-parser.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/textproc/libxml2/files/patch-parser.c b/textproc/libxml2/files/patch-parser.c new file mode 100644 index 000000000000..5813507f7fe7 --- /dev/null +++ b/textproc/libxml2/files/patch-parser.c @@ -0,0 +1,16 @@ +--- parser.c.orig 2009-09-16 17:00:06.000000000 +0200 ++++ parser.c 2009-09-16 17:01:07.000000000 +0200 +@@ -10130,8 +10130,12 @@ xmlParseDocument(xmlParserCtxtPtr ctxt) + /* + * Check for the XMLDecl in the Prolog. + * do not GROW here to avoid the detected encoder to decode more +- * than just the first line ++ * than just the first line, unless the amount of data is really ++ * too small to hold "<?xml version="1.0" encoding="foo" + */ ++ if ((ctxt->input->end - ctxt->input->cur) < 35) { ++ GROW; ++ } + if ((CMP5(CUR_PTR, '<', '?', 'x', 'm', 'l')) && (IS_BLANK_CH(NXT(5)))) { + + /* |