This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter, paul.moore, pavel-belikov, steve.dower, tim.golden, zach.ware
Date 2016-07-22.08:14:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469175296.25.0.246757261649.issue27587@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the report. You seem to have identified some code from Open SSL as being from Python (e.g. ASN1_PRINTABLE_type() function in a_print.c).

Here’s a quick copy of the details relevant to Python:

V547 Expression 's->sock_fd < 0' is always false. Unsigned type value is never < 0. Modules/socketmodule.c:655
V547 Expression 's->sock_fd < 0' is always false. Unsigned type value is never < 0. Modules/_ssl.c:1702
V547 Expression 'sock->sock_fd < 0' is always false. Unsigned type value is never < 0. Modules/_ssl.c:2018
Suggestion: compare with INVALID_SOCKET

V614 Potentially uninitialized pointer 'sigint_event' used. Modules/_multiprocessing/semaphore.c:120

V728 An excessive check can be simplified. The '||' operator is surrounded by opposite expressions 'quotetabs' and '!quotetabs'. Modules/binascii.c:1453

Null pointer check after use of “def” in _PyState_AddModule(), Python/pystate.c
V595 The 'self->extra' pointer was utilized before it was verified against nullptr. Check lines: 917, 923. Modules/_elementtree.c:917

The first two groups (sock_fd and sigint_event) look like Windows-specific code, and I suspect would be diagnosed with GCC (but building Python with GCC on Windows needs work).
History
Date User Action Args
2016-07-22 08:14:56martin.pantersetrecipients: + martin.panter, paul.moore, tim.golden, zach.ware, steve.dower, pavel-belikov
2016-07-22 08:14:56martin.pantersetmessageid: <1469175296.25.0.246757261649.issue27587@psf.upfronthosting.co.za>
2016-07-22 08:14:56martin.panterlinkissue27587 messages
2016-07-22 08:14:55martin.pantercreate