Closed
Description
I don't have a Windows machine to check, but I noticed while reading code that the _overlapped.WSAConnect()
function calls PyTuple_GET_SIZE
on its argument without checking that it is actually a tuple (
Line 1358 in 3e07f82
The following code should reproduce the problem and access out-of-bounds memory:
import asyncio.windows_events
import socket
ip = asyncio.windows_events.IocpProactor()
sock = socket.socket(type=socket.SOCK_DGRAM)
ip.connect(sock, None)
Metadata
Metadata
Assignees
Projects
Status
Done