Re: Bug #7299: Crash when trying to upload a file

From: Date: Wed, 18 Oct 2000 00:04:17 +0000
Subject: Re: Bug #7299: Crash when trying to upload a file
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-35349@lists.php.net to get a copy of this message
> > I think this is fixed in CVS. AFAIK there is a 3.0.18RC1 which addresses > > this problem. Please try this release and report back to this list. > > I tried it right before submitting this bug report. AFAICS, 3.0.18RC1 *is* > rev. 1.64. The crash occurs in the case 3 of the switch(state) on this line: _php3_hash_add(&GLOBAL(request_info).rfc1867_uploaded_files, fn, strlen(fn)+1, &dummy, sizeof(int), NULL); Hope this will help. Best regards, David > > > From: david@guerizec.net > > > Operating system: Linux RedHat 7.0 > > > PHP version: 3.0 Latest CVS (17/10/2000) > > > PHP Bug Type: Reproduceable crash > > > Bug description: Crash when trying to upload a file > > > > > > Hi, > > > I'm a Midgard core developper and since we upgraded to PHP 3.0.17, Apache > > > crashes when submitting the following form. > > > I found a bug in functions/mime.c (rev 1.63) and I saw it's been corrected in > > > the CVS (rev 1.64), but only on enctype="multipart/form-data" forms not containing any > > > 'file' input: when I upgraded to the current CVS version of mime.c, I still couldn't > > > submit a multipart/form-data containing a 'file' input. > > > > > > I tried to come back to functions/mime.c (rev 1.61) and it works well. > > > > > > I use Midgard 1.4b5f (the latest in CVS) from source, and Apache 1.3.12-25 from RPM. > > > > > > <form name="form" action="<? echo $PHP_SELF; ?>" > > > method="POST" ENCTYPE="multipart/form-data"> > > > <input type= "hidden" name="whattodo" > > > value="create"> > > > <input type="text" name="title" value="" size=20> > > > <input type="text" name="name" value="" > > > > <input type="text" name="mimetype" value="" > > > > <input type="hidden" name="MAX_FILE_SIZE" > > > value="2097152"> > > > <input type="file" name="blob"> > > > <input type="submit" name="submit" > > > value="Submit"> > > > </form> > > > > > > > > > -- > > > PHP Development Mailing List > > > <http://www.php.net/> > > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-dev-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > > -- Best Regards, David Guerizec - Open Source Developer @ AurorA R&D

« previous php.dev (#35349) next »