cvs: php4 /ext/standard string.c

From: Date: Sun, 18 Feb 2001 18:31:34 +0000
Subject: cvs: php4 /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4110@lists.php.net to get a copy of this message
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;

« previous php.cvs (#4110) next »