### Bug description: https://github.com/python/cpython/blob/7ec17429d462aee071c067e3b84c8a7e4fcf7263/Modules/syslogmodule.c#L178 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](mailto:eburkov@rvision.ru)). Organization: R-Vision ([support@rvision.ru](mailto:support@rvision.ru)). <!-- gh-linked-prs --> ### Linked PRs * gh-129348 * gh-129442 * gh-129443 <!-- /gh-linked-prs -->
Activity
serhiy-storchaka commentedon Jan 27, 2025
Do you want to provide a PR?
wooffie commentedon Jan 27, 2025
yes, sure
pythongh-129345: null check for indent syslogmodule
pythongh-129345: null check for indent syslogmodule
ZeroIntensity commentedon Jan 27, 2025
Quick reproducer for a test case:
gh-129345: null check for indent syslogmodule (#129348)
pythongh-129345: null check for indent syslogmodule (pythonGH-129348)
pythongh-129345: null check for indent syslogmodule (pythonGH-129348)
[3.12] gh-129345: null check for indent syslogmodule (GH-129348) (#12…
[3.13] gh-129345: null check for indent syslogmodule (GH-129348) (#12…