diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-07-26 10:21:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 10:21:48 (GMT) |
commit | 820904eab21d6adb4380ef27859dad22188805be (patch) | |
tree | d5739bceea1edb410a56dd51e50b57084a521990 /Python/pyfpe.c | |
parent | 5e971e816d8ee1fd911ab38be261425669ec21ce (diff) | |
download | cpython-820904eab21d6adb4380ef27859dad22188805be.zip cpython-820904eab21d6adb4380ef27859dad22188805be.tar.gz cpython-820904eab21d6adb4380ef27859dad22188805be.tar.bz2 |
gh-95041: Fix several minor issues in syslog.openlog() (GH-95058) (GH-95261)
* syslog_get_argv() swallows exceptions, but not in all cases.
* if ident is non UTF-8 encodable, syslog.openlog() fails after setting the
global reference to ident. Now the C string saved internally in the previous
call to openlog() points to the freed memory.
* PySys_Audit() can crash if ident is NULL.
* There may be a race condition with syslog.syslog(), because the global
reference to ident is decrefed before setting the new value.
* Possible use of freed memory if syslog.openlog() is called while
the GIL is released in syslog.syslog().
(cherry picked from commit 68c555a50a2b74731b0db0f4dcbf51b2c11d4853)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/pyfpe.c')
0 files changed, 0 insertions, 0 deletions