mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-02-12 13:38:37 +00:00
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:
parent
a4ba09d725
commit
fa75097343
@ -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>
|
Thu Apr 3 08:22:52 CEST 2008 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* parser.c: more realloc problems pointed out by Ashwin
|
* parser.c: more realloc problems pointed out by Ashwin
|
||||||
|
2
error.c
2
error.c
@ -31,7 +31,7 @@ void XMLCDECL xmlGenericErrorDefaultFunc (void *ctx ATTRIBUTE_UNUSED,
|
|||||||
\
|
\
|
||||||
size = 150; \
|
size = 150; \
|
||||||
\
|
\
|
||||||
while (1) { \
|
while (size < 64000) { \
|
||||||
va_start(ap, msg); \
|
va_start(ap, msg); \
|
||||||
chars = vsnprintf(str, size, msg, ap); \
|
chars = vsnprintf(str, size, msg, ap); \
|
||||||
va_end(ap); \
|
va_end(ap); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user