-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
syslogmodule.c lack of NULL check #129345
Comments
serhiy-storchaka
added
easy
3.12
bugs and security fixes
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
labels
Jan 27, 2025
Do you want to provide a PR? |
yes, sure |
wooffie
added a commit
to wooffie/cpython
that referenced
this issue
Jan 27, 2025
wooffie
added a commit
to wooffie/cpython
that referenced
this issue
Jan 27, 2025
Quick reproducer for a test case: import syslog
import sys
sys.argv = None
def audit(event, _):
if event == "syslog.openlog":
raise RuntimeError("I didn't expect the spanish inquisition")
sys.addaudithook(audit)
syslog.openlog() |
kumaraditya303
pushed a commit
that referenced
this issue
Jan 29, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 29, 2025
(cherry picked from commit 25cf79a) Co-authored-by: Burkov Egor <xwooffie@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 29, 2025
(cherry picked from commit 25cf79a) Co-authored-by: Burkov Egor <xwooffie@gmail.com>
This was referenced Jan 29, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description:
cpython/Modules/syslogmodule.c
Line 178 in 7ec1742
After in if body we use Py_DECREF(indent), which can cause null pointer dereference
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
Additional information
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Reporter: Burkov Egor (eburkov@rvision.ru).
Organization: R-Vision (support@rvision.ru).
Linked PRs
The text was updated successfully, but these errors were encountered: