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
parking_lot.c should check for overflow in Windows _PySemaphore_PlatformWait code path #112804
The cast in millis = (DWORD) (timeout / 1000000); may overflow because DWORD is an unsigned 32-bit integer and timeout is a 64-bit integer. We should clamp the result if the cast would overflow.
Activity
pythongh-112804: Clamping timeout value for _PySemaphore_PlatformWait
gh-112804: Clamping timeout value for _PySemaphore_PlatformWait (gh-1…
pythongh-112804: Clamping timeout value for _PySemaphore_PlatformWait (…
pythongh-112804: Clamping timeout value for _PySemaphore_PlatformWait (…
[3.13] gh-112804: Clamping timeout value for _PySemaphore_PlatformWait (
corona10 commentedon Oct 8, 2024
@colesbury, I am closing the issue if we need to reopen it. please let me know.
colesbury commentedon Oct 8, 2024
Thanks for fixing this!