cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-799698 ] [patch] test suite segfault on empty server response

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 03 Sep 2003 02:54:00 -0700

Bugs item #799698, was opened at 2003-09-03 02:54
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=799698&group_id=976

Category: package
Group: crash
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: [patch] test suite segfault on empty server response

Initial Comment:
A 'make test' fails reproduceably on test 31 and all

the following tests which require the sws process. This is

due to spitout() not always initializing its return string,

causing a bad memory access if the response is 0 bytes

long (e.g. appendstring() has never been called).

The attached trivial patch is also available at

http://www.freebsd.org/cgi/cvsweb.cgi/ports/ftp/curl/files/patch-tests::server::getpart.c

Hope that helps :)

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=799698&group_id=976

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-03