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-1579171 ] Code-analyze (with prefast)

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 17 Oct 2006 11:29:03 -0700

Bugs item #1579171, was opened at 2006-10-17 20:29
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=1579171&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: debug/info output
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: M. Ironman (frzem)
Assigned to: Daniel Stenberg (bagder)
Summary: Code-analyze (with prefast)

Initial Comment:
I've build analyze-report with prefast (from
Microsoft's DDK), and this tool found following
(potential) problems:

* against released source-code 7.15.5

warning 8132 : Taking the size of pointer tsd: This
will yield the size of a pointer (4 or 8), not the size
of the object pointed to. Dereference the pointer, or
if the size of a pointer was intended, use the pointer
type or (void *) instead.
             File path: curl-7.15.5\lib\hostthre.c
             Function: init_thread_sync_data
             Line: 211
memset(tsd, 0, sizeof(tsd));

warning 11 : Dereferencing NULL pointer 'proxy_password'.
             File path: curl-7.15.5\lib\url.c
             Function: handleSock5Proxy
             Line: 2151
memcpy(socksreq + len, proxy_password, (int) pwlen);

Most of the other warnings are on isdigit(), isspace()
..., because MS (Visual Studio) declared the parameter-
type as unsigned char, and the macro-implementation of
these functions have a wrong behaviour with ASCII-
Codes above 0x80 (because they use a array of flags).

BG,
FRZEM

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1579171&group_id=976
Received on 2006-10-17

These mail archives are generated by hypermail.

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

File upload with ASP.NET