Commit 7d1e2ef
fix(net): Fix the WinError 10014 (#954)
* fix(net): Fix the WinError 10014
When sendto_v4 and sendto_v6 are called,
the error WinError 10014 is raised, caused
by passing the wrong sockaddr_len
Note: WSAEFAULT(10014), Bad address.
The system detected an invalid pointer
address in attempting to use a pointer
argument of a call. This error occurs
if an application passes an invalid
pointer value, or if the length of the
buffer is too small. For instance, if
the length of an argument, which is a
sockaddr structure, is smaller than
the sizeof(sockaddr).
* Add testcases for sendto/recvfrom on datagram sockets.
---------
Co-authored-by: Dan Gohman <dev@sunfishcode.online>1 parent 3056dec commit 7d1e2ef
3 files changed
+730
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments