Author cgohlke
Recipients cgohlke
Date 2018-05-31.06:31:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527748270.57.0.682650639539.issue33706@psf.upfronthosting.co.za>
In-reply-to
Content
When testing Python 3.7.0b5 x64 (and betas before) on Windows 10, I occasionally get segfaults when passing a program as string on the command line. The shortest command to reproduce this on my system is `python.exe -c 1` with heap detection turned on but that might not be reproducible on other systems.

It turns out there is a buffer over-read when copying the `PyOS_optarg` string in `main.c`. The attached patch fixes the segfault on my system.
History
Date User Action Args
2018-05-31 06:31:10cgohlkesetrecipients: + cgohlke
2018-05-31 06:31:10cgohlkesetmessageid: <1527748270.57.0.682650639539.issue33706@psf.upfronthosting.co.za>
2018-05-31 06:31:10cgohlkelinkissue33706 messages
2018-05-31 06:31:10cgohlkecreate