sniper Thu Jan 15 01:09:44 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/mime_magic mime_magic.c Log: Fix overflow Index: php-src/ext/mime_magic/mime_magic.c diff -u php-src/ext/mime_magic/mime_magic.c:1.13.2.11 php-src/ext/mime_magic/mime_magic.c:1.13.2.12 --- php-src/ext/mime_magic/mime_magic.c:1.13.2.11 Tue Nov 4 00:15:55 2003 +++ php-src/ext/mime_magic/mime_magic.c Thu Jan 15 01:09:43 2004 @@ -15,7 +15,7 @@ | Author: Hartmut Holzgraefe <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: mime_magic.c,v 1.13.2.11 2003/11/04 05:15:55 sniper Exp $ + $Id: mime_magic.c,v 1.13.2.12 2004/01/15 06:09:43 sniper Exp $ This module contains a lot of stuff taken from Apache mod_mime_magic, so the license section is a little bit longer than usual: @@ -926,7 +926,7 @@ req_dat = MIME_MAGIC_G(req_dat); /* allocate the result string */ - result = (char *) emalloc(len + 1); + result = (char *) emalloc(len + 2); /* loop through and collect the string */ res_pos = 0;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php