cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1170 curl_easy_recv() ends in crash within Curl_recv_plain

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Thu, 10 Jan 2013 08:14:00 +0000

- **status**: open --> pending

---
** [bugs:#1170] curl_easy_recv() ends in crash within Curl_recv_plain**
**Status:** pending
**Labels:** libcurl 
**Created:** Mon Dec 10, 2012 03:16 AM UTC by Con Kolivas
**Last Updated:** Thu Jan 10, 2013 06:52 AM UTC
**Owner:** Daniel Stenberg
In the cgminer project \( https://github.com/ckolivas/cgminer \) I am using libcurl version 7.28.1 compiled for mingw32 and using curl easy recv on the raw socket returned. Dropping internet connection on windows\* with this compiled version I get a reproducible crash on the following line:
sendf.c:353
failf\(conn-&gt;data, "Recv failure: %s", Curl\_strerror\(conn, err\)\);
Debugging is disabled in the build, but this line reliably crashes on mingw32. Commenting out the line entirely the crash goes away. This can be reproduced without dropping internet connection on windows by killing the tcp connection with currports. I don't know the exact mechanism of the crash without digging further but I suspect conn-&gt;data is dereferenced.
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/curl/bugs/1170/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/prefs/>
Received on 2013-01-10

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET