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 izbyshev
Recipients benjamin.peterson, berker.peksag, izbyshev, serhiy.storchaka
Date 2018-08-25.21:05:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
The argument of PySequence_Check() is dereferenced at https://github.com/python/cpython/blob/5f79b50763d687aeeed8edcb4efcc7ac9f8fa186/Objects/abstract.c#L1511 and then checked for NULL.

Reported by Svace static analyzer.

Since other PySomething_Check() functions seem to expect a non-NULL argument, I suggest to remove the NULL check instead of moving it.
History
Date User Action Args
2018-08-25 21:05:49izbyshevsetrecipients: + izbyshev, benjamin.peterson, berker.peksag, serhiy.storchaka
2018-08-25 21:05:49izbyshevsetmessageid: <[email protected]>
2018-08-25 21:05:49izbyshevlinkissue34504 messages
2018-08-25 21:05:49izbyshevcreate