Skip to content

Possible null pointer dereference of variable args in _PyPegen_collect_call_seqs #126240

Closed

Description

@federicovalenso

Crash report

What happened?

args can be NULL as a result of _Py_asdl_expr_seq_new, and then dereference happens.

Return value of _Py_asdl_expr_seq_new` is usually checked, for example here and in other places.

CPython versions tested on:

3.11

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

No response

Linked PRs

Activity

  1. self-assigned this
    on Oct 31, 2024
  2. picnixz commented on Oct 31, 2024

    @picnixz
    Member

    Thanks for this one! I'll hunt other missing NULL check in PyPegen at the same time.

  3. added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    3.12only security fixes
    3.13only security fixes
    3.14bugs and security fixes
    on Oct 31, 2024
  4. added a commit that references this issue on Oct 31, 2024
  5. added a commit that references this issue on Oct 31, 2024
  6. added 2 commits that reference this issue on Oct 31, 2024
  7. picnixz commented on Oct 31, 2024

    @picnixz
    Member

    Closing since completed and backported. Thanks for the report!

  8. added a commit that references this issue on Dec 8, 2024
  9. added a commit that references this issue on Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.12only security fixes3.13only security fixes3.14bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)topic-parsertype-crashA hard crash of the interpreter, possibly with a core dump

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions