CVS update: php3/functions

From: Date: Thu, 03 Jun 1999 10:48:18 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-6501@lists.php.net to get a copy of this message
Date: Thursday June 3, 1999 @ 6:48 Author: sas Update of /repository/php3/functions In directory php:/tmp/cvs-serv19866 Modified Files: wddx_a.c Log Message: strcat on a non initialized buffer can have very bad implications found by dmalloc (I begin to love it) Index: php3/functions/wddx_a.c diff -u php3/functions/wddx_a.c:1.6 php3/functions/wddx_a.c:1.7 --- php3/functions/wddx_a.c:1.6 Mon May 24 14:08:53 1999 +++ php3/functions/wddx_a.c Thu Jun 3 06:48:17 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: wddx_a.c,v 1.6 1999/05/24 18:08:53 sas Exp $ */ +/* $Id: wddx_a.c,v 1.7 1999/06/03 10:48:17 sas Exp $ */ #include "php.h" #include "internal_functions.h" @@ -247,6 +247,7 @@ char *buf; buf = (char *)emalloc(packet->packet_length+1); + buf[0] = '\0'; for(chunk=dlst_first(packet->packet_head); chunk!=NULL; chunk = dlst_next(chunk)) {

« previous php.dev (#6501) next »