<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/shims/ws2_offline.cpp, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-24T12:19:38+00:00</updated>
<entry>
<title>ws2_offline: loopback-bind unbound sends, refuse multicast joins and WSAJoinLeaf groups</title>
<updated>2026-11-24T12:19:38+00:00</updated>
<author>
<name>andretuta</name>
<email>andreviniciusmerlia@gmail.com</email>
</author>
<published>2026-11-24T12:19:38+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=1f88b25d9a3bd2b1266a83f8ef7abe8287298fde'/>
<id>urn:sha1:1f88b25d9a3bd2b1266a83f8ef7abe8287298fde</id>
<content type='text'>
Closes the gaps from the security review on #357:

- sendto, WSASendTo, WSASendMsg (both exports) and WSAJoinLeaf on an
  unbound socket made the host bind it to the wildcard address
  (Microsoft's sendto remarks), so its port took datagrams from other
  hosts. The shim now binds such a socket to 127.0.0.1, ::1 or
  ::ffff:127.0.0.1 first and fails with WSAEADDRNOTAVAIL if it stays
  unbound.
- setsockopt (ws2_32 name and #21) refuses IP_ADD_MEMBERSHIP,
  IP_ADD_SOURCE_MEMBERSHIP, IPV6_ADD_MEMBERSHIP, MCAST_JOIN_GROUP and
  MCAST_JOIN_SOURCE_GROUP with WSAEADDRNOTAVAIL. wsock32's setsockopt is
  its own export (dumpbin on Windows 10 22H2: not a forwarder) that remaps
  the Winsock 1.1 IP_ numbers (Wine dlls/wsock32/socket.c has the same
  table), so it gets its own wrapper that also refuses the 1.1 join (5)
  and forwards everything else to the host wsock32.
- WSAJoinLeaf gets connect's loopback check, so a group is refused.

Tested: ws2_offline_test 71 checks, 0 failures, MSVC 14.44 / SDK
10.0.26100 on Windows 10, including a control check that the host sendto
alone binds to 0.0.0.0; docs tests 47 passed.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>ws2_offline: per-socket extension pointers, refuse name-service lookups, close connect-by-name and octal bypasses, cover wsock32</title>
<updated>2026-11-24T05:42:07+00:00</updated>
<author>
<name>andretuta</name>
<email>andreviniciusmerlia@gmail.com</email>
</author>
<published>2026-11-24T05:42:07+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=d7cdfcf25500503fbd694fb6eb949b694ae71bdf'/>
<id>urn:sha1:d7cdfcf25500503fbd694fb6eb949b694ae71bdf</id>
<content type='text'>
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 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>ws2_offline: add offline loopback-only Winsock2 (ws2_32.dll) shim (RT-WS2-OFFLINE)</title>
<updated>2026-11-24T03:53:14+00:00</updated>
<author>
<name>andretuta</name>
<email>andreviniciusmerlia@gmail.com</email>
</author>
<published>2026-11-24T03:53:14+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=9b59db02f974edc453bab4c2bf69e52f87447ebf'/>
<id>urn:sha1:9b59db02f974edc453bab4c2bf69e52f87447ebf</id>
<content type='text'>
</content>
</entry>
</feed>
