Opened 6 years ago

#5646 defect new

Missing error check for first PyIter_Next call in sendmsg_sendmsg

Reported by: Jean-Paul Calderone Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:


On line 222, PyIter_Next is used to iterate over a list. When it returns NULL, we have to check to see if an error occurred, but we don't.

Note that the second call to PyIter_Next does do this checking (though the checking manifests as a rather mysterious PyErr_Occurred call, which is not obviously related to the PyIter_Next).

In practice, this is not a very likely case to come up. It should still be handled, though.

Change History (0)

Note: See TracTickets for help on using tickets.