avoid a scary realloc() loop should fix #520383 Daniel

* error.c: avoid a scary realloc() loop should fix #520383
Daniel

svn path=/trunk/; revision=3725
This commit is contained in:
Daniel Veillard 2008-04-03 07:31:25 +00:00
parent a4ba09d725
commit fa75097343
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Apr 3 09:30:29 CEST 2008 Daniel Veillard <daniel@veillard.com>
* error.c: avoid a scary realloc() loop should fix #520383
Thu Apr 3 08:22:52 CEST 2008 Daniel Veillard <daniel@veillard.com>
* parser.c: more realloc problems pointed out by Ashwin

View File

@ -31,7 +31,7 @@ void XMLCDECL xmlGenericErrorDefaultFunc (void *ctx ATTRIBUTE_UNUSED,
\
size = 150; \
\
while (1) { \
while (size < 64000) { \
va_start(ap, msg); \
chars = vsnprintf(str, size, msg, ap); \
va_end(ap); \