ID:               37061
 Updated by:       [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to