[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 
<https://bugs.python.org/issue42034>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42036] Unchecked return in Modules/posixmodule.c from multiple function calls

2020-10-27 Thread Sagar Pant


Sagar Pant  added the comment:

Bumping this up for updates.

--

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



[issue42036] Unchecked return in Modules/posixmodule.c from multiple function calls

2020-10-14 Thread Sagar Pant


Change by Sagar Pant :


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

___
Python tracker 
<https://bugs.python.org/issue42036>
___
___
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 
<https://bugs.python.org/issue42034>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42036] Unchecked return in Modules/posixmodule.c from multiple function calls

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 flagged it to be a potential bug as it found another usage of 
the function in the codebase where the return value of the function was checked 
for success/failure before using it’s parameters.

--
components: C API
messages: 378623
nosy: sagar
priority: normal
severity: normal
status: open
title: Unchecked return in Modules/posixmodule.c from multiple function calls
type: enhancement

___
Python tracker 
<https://bugs.python.org/issue42036>
___
___
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 
<https://bugs.python.org/issue42034>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com