Bugs item #1532289, was opened at 2006-08-01 02:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1532289&group_id=976
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: crash
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: Curl_strerror() crash
Initial Comment:
curl-7.15.4
Processor : ARM926EJ-Sid(wb) rev 5 (v5l)
Linux version 2.6.10_mvl402 (gcc version 4.1.1)
When a non existing URL was given in this format:
"http://evo:6969/" libcurl used to crash at line 641 of
strerror.c. What is interresting, the same URL with no
port given didn't cause crash.
What happened?
637: char *msg = strerror_r(err, buffer, sizeof(buffer));
641: strncpy(buf, msg, max);
the "msg" variable was null.
when crashed, err was equal 111, buf and buffer existed.
I've made a quick fix (attached).
Greetings,
Maciej Karpiuk
m.karpiuk_at_sentivision.com
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1532289&group_id=976
Received on 2006-08-01