Closed pietermarsman closed 4 months ago
Pull request
Fixes #971.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70071
Not assume that object can be converted to int. But use try-except in safe_int and return None if it can't be converted to int. Simply ignore the object if that is the case.
int
safe_int
None
How Has This Been Tested?
With the nox tests. And with the fuzz blob.
Checklist
Pull request
Fixes #971.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70071
Not assume that object can be converted to
int
. But use try-except insafe_int
and returnNone
if it can't be converted toint
. Simply ignore the object if that is the case.How Has This Been Tested?
With the nox tests. And with the fuzz blob.
Checklist