diff options
Diffstat (limited to 'textproc/libxml2/files/patch-parser.c')
-rw-r--r-- | textproc/libxml2/files/patch-parser.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/textproc/libxml2/files/patch-parser.c b/textproc/libxml2/files/patch-parser.c new file mode 100644 index 000000000..68111a113 --- /dev/null +++ b/textproc/libxml2/files/patch-parser.c @@ -0,0 +1,13 @@ +diff --git a/parser.c b/parser.c +index 4e5dcb9..c55e41d 100644 +--- parser.c.orig ++++ parser.c +@@ -2709,7 +2709,7 @@ xmlStringLenDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int len, + + buffer[nbchars++] = '&'; + if (nbchars > buffer_size - i - XML_PARSER_BUFFER_SIZE) { +- growBuffer(buffer, XML_PARSER_BUFFER_SIZE); ++ growBuffer(buffer, i + XML_PARSER_BUFFER_SIZE); + } + for (;i > 0;i--) + buffer[nbchars++] = *cur++; |