-
-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asyncio: Possible missing typecheck in overlapped.c #98793
Comments
It is checked in |
I can confirm on Windows debug build that this gives me: |
I have marked it as "easy" because the fix is trivial -- just use corresponding Argument Clinic declaration in other methods as in |
This comment was marked as spam.
This comment was marked as spam.
I'm trying to create a PR for this issue and it won't take long :) |
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 3ac8c0a)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 3ac8c0a)
Thanks, looks like this has been completed! |
I don't have a Windows machine to check, but I noticed while reading code that the
_overlapped.WSAConnect()
function callsPyTuple_GET_SIZE
on its argument without checking that it is actually a tuple (cpython/Modules/overlapped.c
Line 1358 in 3e07f82
The following code should reproduce the problem and access out-of-bounds memory:
overlapped.c
(GH-98835) #98889overlapped.c
(GH-98835) #98890The text was updated successfully, but these errors were encountered: