[New-bugs-announce] [issue42036] Unchecked return in Modules/posixmodule.c from multiple function calls

Sagar Pant report at bugs.python.org
Wed Oct 14 11:21:10 EDT 2020


New submission from Sagar Pant <sagpant at microsoft.com>:

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 <report at bugs.python.org>
<https://bugs.python.org/issue42036>
_______________________________________


More information about the New-bugs-announce mailing list