andretuta
d7cdfcf255
ws2_offline: per-socket extension pointers, refuse name-service lookups, close connect-by-name and octal bypasses, cover wsock32
...
Review fixes for #357 :
- ConnectEx / WSASendMsg wrappers ask the host for the pointer of the socket they run on, instead of one
process-wide pointer that the last WSAIoctl on any provider overwrote.
- WSALookupServiceBeginA/W fail with WSASERVICE_NOT_FOUND.
- WSAConnectByNameA/W hand the host the literal 127.0.0.1 for "localhost", so the hosts file is never read.
- A dotted octet with a leading zero (0127.0.0.1) is refused: Windows reads it as octal.
- wsock32.dll maps bind/connect/sendto/gethostby*/WSAAsyncGetHostBy* (names and ordinals) to the same wrappers and
stays host-owned in owns_dll, like ws2_32.dll.
- docs/runtime_imports.md no longer says a --run can open real sockets; it names the dnsapi.dll gap.
Tested: ws2_offline_test built with clang 23 (msys2 clang64) on Windows: 52 checks, 0 failures. MSVC build not
available locally; CI covers it. tests/test_docs_*.py, test_text_write_line_endings.py, test_runtime_paths.py pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-24 02:42:07 -03:00
..
2026-11-23 22:13:50 +01:00
2026-11-23 12:42:57 -06:00
2026-11-24 08:38:21 +05:30
2026-11-23 22:19:47 +01:00
2026-11-23 14:46:12 -03:00
2026-11-24 05:30:36 +07:00
2026-11-22 23:16:01 -05:00
2026-11-23 16:29:23 -05:00
2026-11-23 10:36:08 -06:00
2026-11-23 17:03:34 -05:00
2026-11-23 17:08:30 -05:00
2026-11-24 03:25:40 +08:00
2026-11-23 09:55:11 -06:00
2026-11-23 08:09:40 -06:00
2026-11-23 10:36:08 -06:00
2026-11-23 09:24:20 -07:00
2026-11-23 22:32:01 +01:00
2026-11-24 04:43:36 +07:00
2026-11-23 22:31:56 +01:00
2026-11-23 17:41:46 +01:00
2026-11-23 09:51:06 -06:00
2026-11-23 18:06:24 +01:00
2026-11-23 08:16:31 -06:00
2026-11-23 09:24:20 -07:00
2026-11-22 23:14:29 -05:00
2026-11-23 17:42:36 +01:00
2026-11-23 22:31:56 +01:00
2026-11-23 22:31:56 +01:00
2026-11-23 19:44:57 -06:00
2026-11-23 18:52:49 +01:00
2026-11-22 23:11:34 -05:00
2026-11-24 01:29:22 +01:00
2026-11-23 23:00:06 +01:00
2026-11-23 09:24:20 -07:00
2026-11-23 09:24:20 -07:00
2026-11-23 20:57:12 -06:00
2026-11-23 16:00:07 -06:00
2026-11-23 21:07:05 +00:00
2026-11-23 19:23:14 +01:00
2026-11-23 09:49:28 -06:00
2026-11-24 03:55:56 +08:00
2026-11-24 01:29:22 +01:00
2026-11-23 09:24:20 -07:00
2026-11-23 12:42:09 -06:00
2026-11-23 09:24:20 -07:00
2026-11-23 09:24:20 -07:00
2026-11-23 09:24:20 -07:00
2026-11-23 12:42:09 -06:00
2026-11-23 20:56:28 +01:00
2026-11-23 09:24:20 -07:00
2026-11-23 09:24:20 -07:00
2026-11-23 09:24:20 -07:00
2026-11-23 09:24:20 -07:00
2026-11-23 17:31:00 +01:00
2026-11-23 09:24:20 -07:00
2026-11-23 13:55:13 -06:00
2026-11-23 12:32:05 -06:00
2026-11-23 22:05:11 +00:00
2026-11-23 12:36:37 -06:00
2026-11-23 11:16:29 -06:00
2026-11-23 08:11:02 -06:00
2026-11-23 22:32:17 +01:00
2026-11-23 09:24:20 -07:00
2026-11-23 11:00:10 -06:00
2026-11-23 14:50:00 -05:00
2026-11-24 00:35:10 +03:00
2026-11-23 22:25:05 +01:00
2026-11-23 09:53:12 -06:00
2026-11-23 09:24:20 -07:00
2026-11-23 09:24:20 -07:00
2026-11-23 04:41:22 -05:00
2026-11-22 23:16:54 -05:00
2026-11-23 20:58:09 -06:00
2026-11-23 04:50:22 -05:00
2026-11-23 18:51:49 -03:00
2026-11-23 22:14:29 -06:00
2026-11-23 20:23:21 -06:00
2026-11-23 15:47:27 -06:00
2026-11-23 15:37:32 -06:00
2026-11-23 22:07:12 +00:00
2026-11-24 07:19:41 +03:00
2026-11-24 07:16:48 +03:00
2026-11-23 20:50:57 +01:00
2026-11-24 15:25:51 +11:00
2026-11-23 13:46:59 -07:00
2026-11-23 20:23:21 -06:00
2026-11-23 17:42:36 +01:00
2026-11-23 12:42:09 -06:00
2026-11-23 20:51:04 -05:00
2026-11-23 16:54:12 -03:00
2026-11-23 09:35:20 -06:00
2026-11-23 21:50:56 -05:00
2026-11-23 22:13:50 +01:00
2026-11-23 11:03:38 -06:00
2026-11-23 10:47:01 -06:00
2026-11-23 22:24:27 +01:00
2026-11-23 19:43:04 -05:00
2026-11-23 09:52:44 -06:00
2026-11-23 19:31:52 +01:00
2026-11-23 09:34:02 -06:00
2026-11-23 20:56:28 +01:00
2026-11-23 09:34:02 -06:00
2026-11-23 09:34:02 -06:00
2026-11-23 12:42:41 -06:00
2026-11-23 19:42:49 -05:00
2026-11-23 22:33:42 +01:00
2026-11-23 18:28:36 +01:00
2026-11-23 20:36:52 -05:00
2026-11-23 09:35:16 -06:00
2026-11-23 09:35:16 -06:00
2026-11-23 23:18:39 +01:00
2026-11-23 12:47:18 -06:00
2026-11-24 02:56:33 +05:30
2026-11-23 12:50:05 -06:00
2026-11-22 23:08:25 -05:00
2026-11-23 22:19:47 +01:00
2026-11-24 06:09:24 +08:00
2026-11-23 16:37:09 -05:00
2026-11-23 12:46:09 -06:00
2026-11-23 16:36:07 -05:00
2026-11-24 00:35:10 +03:00
2026-11-23 19:56:02 +01:00
2026-11-23 08:08:09 -06:00
2026-11-23 08:08:09 -06:00
2026-11-23 08:08:09 -06:00
2026-11-23 09:52:44 -06:00
2026-11-23 16:17:15 -05:00
2026-11-22 23:15:19 -05:00
2026-11-23 08:23:27 -06:00
2026-11-23 21:45:01 +00:00
2026-11-23 17:24:37 -05:00
2026-11-23 11:10:12 -06:00
2026-11-23 11:10:12 -06:00
2026-11-23 21:45:01 +00:00
2026-11-23 21:39:56 +00:00
2026-11-23 16:10:41 +00:00
2026-11-23 04:50:22 -05:00
2026-11-24 02:56:34 +05:30
2026-11-23 23:16:12 +01:00
2026-11-23 08:16:35 -06:00
2026-11-22 23:14:57 -05:00
2026-11-24 02:42:07 -03:00
2026-11-23 18:37:42 +01:00
2026-11-23 17:24:46 -05:00
2026-11-23 12:29:34 -06:00
2026-11-23 08:06:44 -06:00
2026-11-23 16:33:58 -05:00
2026-11-23 09:35:34 -06:00
2026-11-23 17:24:40 -05:00
2026-11-23 21:10:20 -06:00
2026-11-23 22:14:29 -06:00