classification
Title: Unchecked return in Modules/posixmodule.c from multiple function calls
Type: enhancement Stage: patch review
Components: Library (Lib) Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: monocle-ai, python-dev
Priority: normal Keywords: patch

Created on 2020-10-14 15:21 by monocle-ai, last changed 2020-10-14 21:42 by monocle-ai.

Pull Requests
URL Status Linked Edit
PR 22696 open python-dev, 2020-10-14 15:42
Messages (1)
msg378623 - (view) Author: Sagar Pant (monocle-ai) * Date: 2020-10-14 15:21
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.
History
Date User Action Args
2020-10-14 21:42:35monocle-aisetcomponents: + Library (Lib), - C API
2020-10-14 15:42:40python-devsetkeywords: + patch
nosy: + python-dev

pull_requests: + pull_request21668
stage: patch review
2020-10-14 15:21:10monocle-aicreate