thies           Sun Feb 18 10:31:34 2001 EDT

  Modified files:              
    /php4/ext/standard  string.c 
  Log:
  fixed buffer-overwrite
  
  
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.188 php4/ext/standard/string.c:1.189
--- php4/ext/standard/string.c:1.188    Thu Feb 15 06:01:18 2001
+++ php4/ext/standard/string.c  Sun Feb 18 10:31:31 2001
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.188 2001/02/15 14:01:18 thies Exp $ */
+/* $Id: string.c,v 1.189 2001/02/18 18:31:31 thies Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -412,7 +412,7 @@
        }
        else {
                /* Multiple character line break */
-               newtext = emalloc((*ptext)->value.str.len * (breakcharlen+1));
+               newtext = emalloc((*ptext)->value.str.len * (breakcharlen+1)+1);
                newtext[0] = '\0';
 
                i = 0;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to