libxml2 r3727 - trunk



Author: veillard
Date: Thu Apr  3 10:46:34 2008
New Revision: 3727
URL: http://svn.gnome.org/viewvc/libxml2?rev=3727&view=rev

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


Modified:
   trunk/ChangeLog
   trunk/encoding.c

Modified: trunk/encoding.c
==============================================================================
--- trunk/encoding.c	(original)
+++ trunk/encoding.c	Thu Apr  3 10:46:34 2008
@@ -1992,8 +1992,8 @@
     toconv = in->use;
     if (toconv == 0)
 	return(0);
-    if (toconv * 2 >= written) {
-        xmlBufferGrow(out, toconv * 2);
+    if (toconv * 4 >= written) {
+        xmlBufferGrow(out, toconv * 4);
 	written = out->size - out->use - 1;
     }
     if (handler->output != NULL) {



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