You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee=Noneclosed_at=<Date2018-05-31.14:14:27.497>created_at=<Date2018-05-31.06:31:10.545>labels= ['interpreter-core', '3.7', '3.8', 'type-crash']
title='Segfault in command line processing due to buffer over-read'updated_at=<Date2018-05-31.14:14:27.495>user='https://bugs.python.org/cgohlke'
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.