[issue42034] Unchecked return in Objects/typeobject.c and possible uninitialized variables in cls and new_mro

2021-10-09 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

There is no bug in this code. The list "temp" contains only 2- and 3-tuples. 
PyArg_UnpackTuple() never fails.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42034] Unchecked return in Objects/typeobject.c and possible uninitialized variables in cls and new_mro

2020-10-27 Thread Sagar Pant


Sagar Pant  added the comment:

Bumping this up for updates.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42034] Unchecked return in Objects/typeobject.c and possible uninitialized variables in cls and new_mro

2020-10-14 Thread Sagar Pant


Change by Sagar Pant :


--
components: +Library (Lib) -C API

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42034] Unchecked return in Objects/typeobject.c and possible uninitialized variables in cls and new_mro

2020-10-14 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 1.0 -> 2.0
pull_requests: +21666
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22695

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42034] Unchecked return in Objects/typeobject.c and possible uninitialized variables in cls and new_mro

2020-10-14 Thread Sagar Pant


New submission from Sagar Pant :

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 .

--
components: C API
messages: 378615
nosy: sagar
priority: normal
severity: normal
status: open
title: Unchecked return in Objects/typeobject.c and possible uninitialized 
variables in cls and new_mro
type: enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com