cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: segfault, glibc corruption, redhat

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 18 Sep 2008 23:23:32 +0200 (CEST)

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!

-- 
  / daniel.haxx.se
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-09-18