summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-26 06:35:25 (GMT)
committerGitHub <noreply@github.com>2022-07-26 06:35:25 (GMT)
commitdd0c1a3577618c30598a0a57f9a91e316605f6b9 (patch)
treef191e6b52bb1924cb8dd29b7c01daab5cbbddc3b /Python/getargs.c
parent0418d9f2f3c6736dcf00703a8d3cbe5b19cfb83e (diff)
downloadcpython-dd0c1a3577618c30598a0a57f9a91e316605f6b9.zip
cpython-dd0c1a3577618c30598a0a57f9a91e316605f6b9.tar.gz
cpython-dd0c1a3577618c30598a0a57f9a91e316605f6b9.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(). (cherry picked from commit 68c555a50a2b74731b0db0f4dcbf51b2c11d4853) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/getargs.c')
0 files changed, 0 insertions, 0 deletions