cvs: php4(PHP_4_0_7) /main SAPI.c

From: Date: Sun, 16 Dec 2001 16:09:04 +0000
Subject: cvs: php4(PHP_4_0_7) /main SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8672@lists.php.net to get a copy of this message
sesser Sun Dec 16 11:09:04 2001 EDT Modified files: (Branch: PHP_4_0_7) /php4/main SAPI.c Log: MFH : fixed bufferoverflow in sapi_add_header_ex Index: php4/main/SAPI.c diff -u php4/main/SAPI.c:1.113.2.2 php4/main/SAPI.c:1.113.2.3 --- php4/main/SAPI.c:1.113.2.2 Sun Oct 21 13:59:35 2001 +++ php4/main/SAPI.c Sun Dec 16 11:09:04 2001 @@ -487,6 +487,7 @@ efree(result); conv_len = sprintf(conv_temp," realm=\"%ld\"",myuid); result = emalloc(ptr_len+conv_len+1); + result_len = ptr_len + conv_len; memcpy(result, ptr, ptr_len); memcpy(result+ptr_len, conv_temp, conv_len); *(result+ptr_len+conv_len) = '\0';

« previous php.cvs (#8672) next »