blob: 45c91615a9c562dba7358f048b302a804f9b313d [file] [log] [blame]
Index: third_party/libxml/src/xmlsave.c
===================================================================
--- third_party/libxml/src/xmlsave.c (revision 117989)
+++ third_party/libxml/src/xmlsave.c (working copy)
@@ -248,7 +248,7 @@
/*
* We assume we have UTF-8 input.
*/
- if (outend - out < 10) break;
+ if (outend - out < 11) break;
if (*in < 0xC0) {
xmlSaveErr(XML_SAVE_NOT_UTF8, NULL, NULL);
@@ -1928,7 +1928,7 @@
/*
* We assume we have UTF-8 content.
*/
- unsigned char tmp[10];
+ unsigned char tmp[12];
int val = 0, l = 1;
if (base != cur)