-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Potential null pointer dereference in PySys_AddWarnOptionUnicode
#126108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
PySys_AddWarnOptionUnicode
Thanks for spotting this. This still happens on Note: 3.11 is security-only and this does not seem to count as a security issue unless someone is able to provide me a PoC of an exploit using that null pointer dereference. |
cc @sobolevn since you are working on this batch of issues |
I haven't seen this one yet :) |
kumaraditya303
pushed a commit
that referenced
this issue
Jan 31, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 31, 2025
…WarnOptionUnicode` (pythonGH-126118) (cherry picked from commit fad36bf) Co-authored-by: Valery Fedorenko <federicovalenso@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 31, 2025
…WarnOptionUnicode` (pythonGH-126118) (cherry picked from commit fad36bf) Co-authored-by: Valery Fedorenko <federicovalenso@gmail.com>
srinivasreddy
pushed a commit
to srinivasreddy/cpython
that referenced
this issue
Feb 7, 2025
…WarnOptionUnicode` (python#126118)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
Pointer tstate is compared to a NULL value here, but above there is a dereference. Stack trace: _PySys_AddWarnOptionWithError -> get_warnoptions -> _PySys_GetAttr. Correct code should look like this:
CPython versions tested on:
3.11
Operating systems tested on:
No response
Linked PRs
PySys_AddWarnOptionUnicode
(GH-126118) #129520PySys_AddWarnOptionUnicode
(GH-126118) #129522The text was updated successfully, but these errors were encountered: