Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Potential null pointer dereference inPySys_AddWarnOptionUnicode #126108

Closed
Labels
3.12only security fixes3.13bugs and security fixes3.14bugs and security fixeseasyinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
@federicovalenso

Description

@federicovalenso

Bug report

Bug description:

Pointertstate is compared to a NULL valuehere, but above there is adereference. Stack trace:_PySys_AddWarnOptionWithError ->get_warnoptions ->_PySys_GetAttr. Correct code should look like this:

voidPySys_AddWarnOptionUnicode(PyObject*option){PyThreadState*tstate=_PyThreadState_GET();if (tstate&&_PySys_AddWarnOptionWithError(tstate,option)<0) {/* No return value, therefore clear error state if possible */_PyErr_Clear(tstate);    }}

CPython versions tested on:

3.11

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13bugs and security fixes3.14bugs and security fixeseasyinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp