Bug #7812: Crash on file upload when running as apache module
| From: | caseq at paranoia dot ru | Date: | Tue, 14 Nov 2000 15:51:45 +0000 |
| Subject: | Bug #7812: Crash on file upload when running as apache module | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38079@lists.php.net to get a copy of this message | ||
From: caseq@paranoia.ru
Operating system: FreeBSD 3.3-RELEASE
PHP version: 3.0.17
PHP Bug Type: Reproduceable crash
Bug description: Crash on file upload when running as apache module
See bug #7799 for a script to reproduce (the bug is different, though).
The problem is in php3_init_request_info(void *conf), as it only initializes
request_info.rfc1867_uploaded_files if compiled as CGI. Overall, 4 versions of this function look
significantly out of sync, so other bugs are possible, too.
The problem arises later in mime.c line 256, when adding file name to uninitialized hash.