Ticket #33 (new defect)

Opened 2 years ago

Last modified 2 years ago

False positive with PyArg_UnpackTuple seen analyzing postgresql

Reported by: dmalcolm Owned by: dmalcolm@…
Priority: major Milestone:
Component: CPython static analysis Version:
Keywords: Cc:
Blocked By: Blocking:

Change History

comment:1 Changed 2 years ago by dmalcolm

The false positive here is that the checker is considering the case

when PyArg_UnpackTuple() fails

whereas that's not possible: the code already checked:

	if (PyTuple_Size(args) == 1)

above, so with that guard, PyArg_UnpackTuple can't fail.

Note: See TracTickets for help on using tickets.