diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-07-26 06:12:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 06:12:10 (GMT) |
commit | 68c555a50a2b74731b0db0f4dcbf51b2c11d4853 (patch) | |
tree | 7434e572690e0768def354b32a4f5b0cbeff840f /Python/getplatform.c | |
parent | 2ef73be891eb95064e268341e38e81d008add480 (diff) | |
download | cpython-68c555a50a2b74731b0db0f4dcbf51b2c11d4853.zip cpython-68c555a50a2b74731b0db0f4dcbf51b2c11d4853.tar.gz cpython-68c555a50a2b74731b0db0f4dcbf51b2c11d4853.tar.bz2 |
gh-95041: Fix several minor issues in syslog.openlog() (GH-95058)
* 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().
Diffstat (limited to 'Python/getplatform.c')
0 files changed, 0 insertions, 0 deletions