#37061 [Opn->Asn]: Zend HashTable getting corrupted
| From: | tony2001@php.net | Date: | Thu, 13 Apr 2006 09:44:08 +0000 |
| Subject: | #37061 [Opn->Asn]: Zend HashTable getting corrupted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95737@lists.php.net to get a copy of this message | ||
ID: 37061
Updated by: tony2001@php.net
Reported By: ceo at l-i-e dot com
-Status: Open
+Status: Assigned
Bug Type: cURL related
Operating System: FreeBSD 5.3-RELEASE
PHP Version: 5.1.2
-Assigned To:
+Assigned To: tony2001
New Comment:
Assigned to myself - I have the patch.
Previous Comments:
------------------------------------------------------------------------
[2006-04-13 00:12:11] ceo at l-i-e dot com
Jeez, I'm fumbling today.
http://acousticdemo.com/info.com/overture/binarytransfer.phps
------------------------------------------------------------------------
[2006-04-13 00:05:57] bjori@php.net
404 not found...
------------------------------------------------------------------------
[2006-04-12 23:47:48] ceo at l-i-e dot com
Errr. To be 100% clear:
The $html strings should not be non-zero-terminated.
$jpeg makes perfect sense as non-zero-terminated, to me.
------------------------------------------------------------------------
[2006-04-12 23:38:56] ceo at l-i-e dot com
Okay.
HERE is a short (35 lines) script which will yield:
Warning: String is not zero-terminated
I don't think the strings involved should have any problem being
zero-terminated -- They are just HTML plain-text.
This MAY not solve this bug, but it's an easy avenue to explore, and
MAY solve the root cause of this bug, if my suspicions are correct.
http://acousticdemo.com/binarytransfer.phps
NOTE:
You'll have to run it from CLI (or CGI) and --enable-debug to get the
messages.
Note that the strings ONLY get "not zero-terminated" if you do the
CURLOPT_BINARYTRANFER part of the script.
Comment out that middle section, and warnings go away.
Surely this should not behave like this, right?
------------------------------------------------------------------------
[2006-04-12 23:17:22] tony2001@php.net
No need to install it in the system or use some ports.
Just grab the latest valgrind sources and compile them in your own HOME
directory. IIRC latest relase compiled on FreeBSD just fine.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/37061
--
Edit this bug report at http://bugs.php.net/?id=37061&edit=1