tony2001 Fri Dec 10 05:30:01 2004 EDT Modified files: /php-src/ext/standard file.c Log: fix buffer overrun & segfault in get_meta_tags() when there is no tag value http://cvs.php.net/diff.php/php-src/ext/standard/file.c?r1=1.392&r2=1.393&ty=u Index: php-src/ext/standard/file.c diff -u php-src/ext/standard/file.c:1.392 php-src/ext/standard/file.c:1.393 --- php-src/ext/standard/file.c:1.392 Mon Dec 6 18:30:37 2004 +++ php-src/ext/standard/file.c Fri Dec 10 05:30:01 2004 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.392 2004/12/06 23:30:37 iliaa Exp $ */ +/* $Id: file.c,v 1.393 2004/12/10 10:30:01 tony2001 Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -432,7 +432,7 @@ if (have_content) { add_assoc_string(return_value, name, value, 0); } else { - add_assoc_string(return_value, name, "", 0); + add_assoc_string(return_value, name, "", 1); } efree(name);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php