Commit 4eca257
Fix clippy warnings and null pointer issues in overlapped module
- Add #[allow(dead_code)] to specific OverlappedData variants that store
buffers which must be kept alive during async operations but aren't
directly read from Rust code: ReadInto, Write, Accept
- Add #[allow(dead_code)] to WaitNamedPipeAndConnect (reserved for named pipe)
- Add #[allow(clippy::too_many_arguments)] to TransmitFile method
which follows CPython's API signature
- Fix potential null pointer issues in WSARecvInto, WSASend, WSASendTo,
and WSARecvFromInto by validating buffer contiguity before use
(matches CPython behavior which rejects non-contiguous buffers)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent c9b1a1b commit 4eca257
File tree
2 files changed
+25
-18
lines changed- crates/stdlib/src
- scripts
2 files changed
+25
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
724 | 729 | | |
725 | 730 | | |
726 | 731 | | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
| 732 | + | |
731 | 733 | | |
732 | 734 | | |
733 | 735 | | |
| |||
830 | 832 | | |
831 | 833 | | |
832 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
833 | 840 | | |
834 | 841 | | |
835 | 842 | | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
| 843 | + | |
840 | 844 | | |
841 | 845 | | |
842 | 846 | | |
| |||
1218 | 1222 | | |
1219 | 1223 | | |
1220 | 1224 | | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
1221 | 1230 | | |
1222 | 1231 | | |
1223 | 1232 | | |
1224 | 1233 | | |
1225 | 1234 | | |
1226 | 1235 | | |
1227 | 1236 | | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
| 1237 | + | |
1232 | 1238 | | |
1233 | 1239 | | |
1234 | 1240 | | |
| |||
1378 | 1384 | | |
1379 | 1385 | | |
1380 | 1386 | | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1381 | 1391 | | |
1382 | 1392 | | |
1383 | 1393 | | |
| |||
1388 | 1398 | | |
1389 | 1399 | | |
1390 | 1400 | | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
| 1401 | + | |
1395 | 1402 | | |
1396 | 1403 | | |
1397 | 1404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
0 commit comments