curl-and-php
Re: segfault, glibc corruption, redhat
Date: Thu, 18 Sep 2008 15:53:27 -0700
Daniel Stenberg wrote:
> On Thu, 18 Sep 2008, Jon Drukman wrote:
>
>> the problem is one of these fwrite's in lib/sendf.c (around line 679):
>>
>> case CURLINFO_HEADER_IN:
>> fwrite(s_infotype[type], 2, 1, data->set.err);
>> fwrite(ptr, size, 1, data->set.err);
>>
>> i think it's the first one. it should probably check to make sure
>> it's got a valid filehandle before trying to write.
>
> I disagree. The user of libcurl should make sure to only set valid
> filehandles to the CURLOPT_STDERR option, as is documented!
>
well it was obviously a valid filehandle when i created it. i can't
control what happens with it inside php. haven't you ever heard the
saying "program defensively"?
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-09-19