libxslt r1463 - in trunk: . libxslt



Author: veillard
Date: Thu Apr  3 08:34:26 2008
New Revision: 1463
URL: http://svn.gnome.org/viewvc/libxslt?rev=1463&view=rev

Log:
* libxslt/xsltutils.c: avoid a scary realloc() loop should fix #520383
Daniel


Modified:
   trunk/ChangeLog
   trunk/libxslt/xsltutils.c

Modified: trunk/libxslt/xsltutils.c
==============================================================================
--- trunk/libxslt/xsltutils.c	(original)
+++ trunk/libxslt/xsltutils.c	Thu Apr  3 08:34:26 2008
@@ -482,7 +482,7 @@
 								\
     size = 150;							\
 								\
-    while (1) {							\
+    while (size < 64000) {					\
 	va_start(ap, msg);					\
   	chars = vsnprintf(str, size, msg, ap);			\
 	va_end(ap);						\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]