cvs: /php4/ext/standard string.c

From: Date: Sat, 29 Jan 2000 17:55:00 +0000
Subject: cvs: /php4/ext/standard string.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-9558@lists.php.net to get a copy of this message
zeev Sat Jan 29 09:55:00 2000 EDT Modified files: /php4/ext/standard string.c Log: @- Fixed a crash bug in strtr() working on large input strings (Zeev) Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.88 php4/ext/standard/string.c:1.89 --- php4/ext/standard/string.c:1.88 Fri Jan 28 09:24:50 2000 +++ php4/ext/standard/string.c Sat Jan 29 09:54:30 2000 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.88 2000/01/28 17:24:50 zeev Exp $ */ +/* $Id: string.c,v 1.89 2000/01/29 17:54:30 zeev Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -1215,7 +1215,7 @@ if ((newpos + tlen + 1) > newlen) { newlen = newpos + tlen + 1 + 8192; - newstr = realloc(newstr,newlen); + newstr = erealloc(newstr,newlen); } memcpy(newstr+newpos,tval,tlen); @@ -1233,7 +1233,7 @@ if (! found) { if ((newpos + 1) > newlen) { newlen = newpos + 1 + 8192; - newstr = realloc(newstr,newlen); + newstr = erealloc(newstr,newlen); } newstr[ newpos++ ] = str[ pos++ ];

« previous php.version4 (#9558) next »