Skip to content

Unchecked return in Modules/posixmodule.c from multiple function calls #86202

Open

Description

@monocle-ai
BPO 42036
PRs
  • bpo-42036:Fixed unchecked return in Modules/posixmodule.c #22696
  • 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 = None
    closed_at = None
    created_at = <Date 2020-10-14.15:21:10.723>
    labels = ['type-feature', 'library']
    title = 'Unchecked return in Modules/posixmodule.c from multiple function calls'
    updated_at = <Date 2020-10-27.17:36:50.729>
    user = 'https://bugs.python.org/monocle-ai'

    bugs.python.org fields:

    activity = <Date 2020-10-27.17:36:50.729>
    actor = 'monocle-ai'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-10-14.15:21:10.723>
    creator = 'monocle-ai'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42036
    keywords = ['patch']
    message_count = 2.0
    messages = ['378623', '379782']
    nosy_count = 2.0
    nosy_names = ['python-dev', 'monocle-ai']
    pr_nums = ['22696']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue42036'
    versions = []

    Activity

    1. monocle-ai commented on Oct 14, 2020

      monocle-aimannequin
      MannequinAuthor

      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.

    2. added
      type-featureA feature request or enhancement
      stdlibStandard Library Python modules in the Lib/ directory
      and removed on Oct 14, 2020
    3. monocle-ai commented on Oct 27, 2020

      monocle-aimannequin
      MannequinAuthor

      Bumping this up for updates.

    4. transferred this issue fromon Apr 10, 2022
    5. added
      type-bugAn unexpected behavior, bug, or error
      and removed
      type-featureA feature request or enhancement
      on Jul 3, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions