diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-05-31 13:09:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-31 13:09:28 (GMT) |
commit | 58d1683255abb0df4fc70960da6121aeaa41e1d1 (patch) | |
tree | f2cfc80547018a700beef7b6a39d3acca9d98bbb /Misc | |
parent | 941ec210aaef517cf818b043ec28345962f78465 (diff) | |
download | cpython-58d1683255abb0df4fc70960da6121aeaa41e1d1.zip cpython-58d1683255abb0df4fc70960da6121aeaa41e1d1.tar.gz cpython-58d1683255abb0df4fc70960da6121aeaa41e1d1.tar.bz2 |
bpo-33706: Fix pymain_parse_cmdline_impl() (GH-7283)
Fix a crash in Python initialization when parsing the command line
options.
Fix memcpy() size parameter: previously, we read one wchar_t after
the end of _PyOS_optarg. Moreover, don't copy the trailingg NUL
character: we write it manually anyway.
Thanks Christoph Gohlke for the bug report and the fix!
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2018-05-31-14-50-04.bpo-33706.ztlH04.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-05-31-14-50-04.bpo-33706.ztlH04.rst b/Misc/NEWS.d/next/Core and Builtins/2018-05-31-14-50-04.bpo-33706.ztlH04.rst new file mode 100644 index 0000000..d3b8477 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2018-05-31-14-50-04.bpo-33706.ztlH04.rst @@ -0,0 +1,2 @@ +Fix a crash in Python initialization when parsing the command line options. +Thanks Christoph Gohlke for the bug report and the fix! |