cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2671602 ] ./src/main.c Overlapping data buffer 'dirbuildup'

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sat, 07 Mar 2009 15:31:48 +0000

Bugs item #2671602, was opened at 2009-03-07 10:31
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=2671602&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: None
Group: portability problem
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bill Egert (boogachamp)
Assigned to: Nobody/Anonymous (nobody)
Summary: ./src/main.c Overlapping data buffer 'dirbuildup'

Initial Comment:
Using curl 7.19.4

"If copying takes place between objects that overlap as a result of a call to
sprintf() or snprintf(), the results are undefined."
http://www.opengroup.org/onlinepubs/000095399/functions/printf.html

E.g. on line 5290 you have:
sprintf(dirbuildup,"%s%s%s",dirbuildup, DIR_CHAR, tempdir);

cppcheck 1.29 (https://sourceforge.net/projects/cppcheck/) yeilds:
[./src/main.c:5290]: (error) Overlapping data buffer dirbuildup

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2671602&group_id=976
Received on 2009-03-07

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET