cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-530562 ] ftp_pasv_verbose crashes on Linux

From: <noreply_at_sourceforge.net>
Date: Fri, 15 Mar 2002 16:13:32 -0800

Bugs item #530562, was opened at 2002-03-15 18:13
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=530562&group_id=976

Category: libcurl
Group: crash
Status: Open
Resolution: None
Priority: 5
Submitted By: Albert Choy (achoy)
Assigned to: Daniel Stenberg (bagder)
Summary: ftp_pasv_verbose crashes on Linux

Initial Comment:
Doing a file listing using libcurl 7.5.3-7.5.5 from
Linux to a non-standard Windows ftp server (doesn't
support epsv) will cause an application to crash.

Problem is in lib/ftp.c calling gethostbyaddr_r (lines
922-925) with sizeof(hostent_buf) which is a pointer
instead of sizeof(bigbuf) resulting in a negative
value for buffer size passed to gethostbyaddr_r. Same
problem in Solaris code (lines 914-917).

Fix is to replace lines 917 & 925 with: sizeof
(bigbuf) - sizeof(*answer).

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

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=530562&group_id=976
Received on 2002-03-16