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
{{ message }}
Repository navigation
Use after free in getpath_isxfile() on Windows #158288
CompareStringOrdinal() reads path + cchPath - 4 after PyMem_Free(path), so the result of the .exe check depends on freed memory. The function is called during interpreter startup, when looking for the executable.
Only the main branch is affected: the early free was introduced in GH-153230, before which the buffer was freed at the end of the block.
Activity
serhiy-storchaka commentedon Sep 27, 2026
The fix was in #158132.