1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

buffer may not be large enough to convert to UCS4, patch from Christian

* encoding.c: buffer may not be  large enough to convert to
  UCS4, patch from Christian Fruth , fixes #504015
Daniel

svn path=/trunk/; revision=3727
This commit is contained in:
Daniel Veillard
2008-04-03 09:46:34 +00:00
parent 36de63e71d
commit f124539f7a
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
Thu Apr 3 11:44:57 CEST 2008 Daniel Veillard <daniel@veillard.com>
* encoding.c: buffer may not be large enough to convert to
UCS4, patch from Christian Fruth , fixes #504015
Thu Apr 3 11:02:02 CEST 2008 Daniel Veillard <daniel@veillard.com> Thu Apr 3 11:02:02 CEST 2008 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c: apparently it's okay to forget the semicolumn after * HTMLparser.c: apparently it's okay to forget the semicolumn after

View File

@@ -1992,8 +1992,8 @@ retry:
toconv = in->use; toconv = in->use;
if (toconv == 0) if (toconv == 0)
return(0); return(0);
if (toconv * 2 >= written) { if (toconv * 4 >= written) {
xmlBufferGrow(out, toconv * 2); xmlBufferGrow(out, toconv * 4);
written = out->size - out->use - 1; written = out->size - out->use - 1;
} }
if (handler->output != NULL) { if (handler->output != NULL) {