SIGN IN SIGN UP

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!
V
Victor Stinner committed
58d1683255abb0df4fc70960da6121aeaa41e1d1
Parent: 941ec21
Committed by GitHub <noreply@github.com> on 5/31/2018, 1:09:28 PM