You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unchecked return in Objects/typeobject.c and possible uninitialized variables in cls and new_mro #86200
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2020-10-14.13:47:28.507>labels= ['type-feature', 'library']
title='Unchecked return in Objects/typeobject.c and possible uninitialized variables in cls and new_mro'updated_at=<Date2021-10-09.19:04:14.462>user='https://bugs.python.org/monocle-ai'
The return value of a function that is potentially used to initialize a local variable is not checked. Therefore, reading the local variable may result in undefined behavior.
Our AI analyzer found that this function is called for a total of 43 times. Out of these 43 times, the return value from the function call is checked at 42 instances. This is the only instance where the code misses to check the return value for success or failure.
Once such correct reference usage found in Python/hamt.c at line 2805 .
Activity
monocle-ai commentedon Oct 14, 2020
The return value of a function that is potentially used to initialize a local variable is not checked. Therefore, reading the local variable may result in undefined behavior.
Our AI analyzer found that this function is called for a total of 43 times. Out of these 43 times, the return value from the function call is checked at 42 instances. This is the only instance where the code misses to check the return value for success or failure.
Once such correct reference usage found in Python/hamt.c at line 2805 .
monocle-ai commentedon Oct 27, 2020
Bumping this up for updates.
serhiy-storchaka commentedon Oct 9, 2021
There is no bug in this code. The list "temp" contains only 2- and 3-tuples. PyArg_UnpackTuple() never fails.