<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/shims/winhttp_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-23T04:14:57+00:00</updated>
<entry>
<title>Merge pull request #4464 from cixotdev</title>
<updated>2026-11-23T04:14:57+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T04:14:57+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=2dfcd750dcefec186990c9caeb8c7cba9935374c'/>
<id>urn:sha1:2dfcd750dcefec186990c9caeb8c7cba9935374c</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #4209 from JavierBlanco23</title>
<updated>2026-11-23T04:12:22+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T04:12:22+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=3731598f8bc11d3c1eb6006f80fe1ac99d941092'/>
<id>urn:sha1:3731598f8bc11d3c1eb6006f80fe1ac99d941092</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #3874 from kotorvr</title>
<updated>2026-11-23T04:09:07+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T04:09:07+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=3a2f4b3e76597d2887415b37464b27f36cf052bc'/>
<id>urn:sha1:3a2f4b3e76597d2887415b37464b27f36cf052bc</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/main' into triage-r43</title>
<updated>2026-11-23T03:12:50+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T03:09:51+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=be8570ace18d3144d6cbfc2d57c60e736a1c1465'/>
<id>urn:sha1:be8570ace18d3144d6cbfc2d57c60e736a1c1465</id>
<content type='text'>
# Conflicts:
#	docs/runtime_imports.md
#	runtime/CMakeLists.txt
#	runtime/shims/xgameruntime.cpp
#	runtime/test/xmem_test.cpp
#	tools/rdna2spirv.py
</content>
</entry>
<entry>
<title>winhttp_offline: initialize server/port and hold ref across HANDLE_CREATED</title>
<updated>2026-11-23T01:34:11+00:00</updated>
<author>
<name>cixotdev</name>
<email>339371196+cixotdev@users.noreply.github.com</email>
</author>
<published>2026-11-23T01:22:27+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=111eb7e6f67a0bdc26bdabf0de269cf6809558a7'/>
<id>urn:sha1:111eb7e6f67a0bdc26bdabf0de269cf6809558a7</id>
<content type='text'>
In `open_connection()` (`WinHttpConnect`), `make_handle(Kind::Connect, s,
s-&gt;async)` previously inserted the new `Handle` into `live()` and
synchronously invoked `WINHTTP_CALLBACK_STATUS_HANDLE_CREATED` before
`c-&gt;server = server` and `c-&gt;port = port` were assigned, and without
holding a temporary reference on the handle while `HANDLE_CREATED` ran.

This caused three issues when a `HANDLE_CREATED` callback acted on the
handle inline or handed it to another thread:
1. Calling `WinHttpCloseHandle(self)` inside `HANDLE_CREATED` erased and
   freed `Handle` (`refs` 1 -&gt; 0 -&gt; `delete h`) before `make_handle()`
   returned, causing `open_connection()` to write `server` and `port`
   into freed heap memory (use-after-free).
2. Because `make_handle()` held no reference across `HANDLE_CREATED`,
   `WinHttpCloseHandle(self)` inside `HANDLE_CREATED` fired
   `WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING` re-entrantly before
   `HANDLE_CREATED` returned and still returned the freed non-null
   `HINTERNET` handle from `WinHttpConnect` / `WinHttpOpenRequest`,
   whereas native `winhttp.dll` (measured on Windows 11 26200) fires
   `HANDLE_CLOSING` after `HANDLE_CREATED` exits and returns `NULL` with
   `ERROR_WINHTTP_OPERATION_CANCELLED` (12017).
3. Opening and sending a request from inside `HANDLE_CREATED` (or from a
   worker thread notified by it) caused `log_refused()` / `server_of()`
   to read an empty `server` and port `0` (`:0`) or race with
   `std::wstring` assignment.

Initialize `h-&gt;server` and `h-&gt;port` inside `make_handle()` before
inserting into `live()`, hold an extra reference across
`WINHTTP_CALLBACK_STATUS_HANDLE_CREATED` so `HANDLE_CLOSING` fires after
`HANDLE_CREATED` returns, and return `nullptr` with
`ERROR_WINHTTP_OPERATION_CANCELLED` if the callback closed the handle.

Verification (synthetic tests only, no game files):
- `winhttp_offline_test`: 57/57 checks pass via CTest and direct run
- MSVC `/fsanitize=address`: 57/57 checks pass with 0 ASan errors
  (reproduced `heap-use-after-free` on unpatched `origin/main`)
- Adjacent non-GPU runtime shim tests (`loader`, `dll_thread_calls`,
  `unimplemented_policy`, `xmem`, `process_cmdline`, `file_system`,
  `winhttp_offline`, `xgameruntime`): 8/8 passed via CTest
- `python -I scripts/check_no_game_data.py`: passed

Coordination claim:
https://github.com/ItsNotRexed/Leonida/issues/4257#issuecomment-7088991989

AI-assisted implementation and testing.
</content>
</entry>
<entry>
<title>runtime/winhttp_offline: accept blank-line blocks and enforce RFC 7230 header-name token chars</title>
<updated>2026-11-23T00:12:22+00:00</updated>
<author>
<name>JavierBlanco23</name>
<email>JaviHeafy@gmail.com</email>
</author>
<published>2026-11-23T00:12:22+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=f73fba1b4c367542f15d0597e31d4f3ffbed410f'/>
<id>urn:sha1:f73fba1b4c367542f15d0597e31d4f3ffbed410f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>runtime/winhttp_offline: match host WinHTTP header, handle-type, and buffer-size validation (RT-277)</title>
<updated>2026-11-22T23:59:42+00:00</updated>
<author>
<name>JavierBlanco23</name>
<email>JaviHeafy@gmail.com</email>
</author>
<published>2026-11-22T23:59:42+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=469447a3cc384a73dbdd7412b1d32b87ee0cacd2'/>
<id>urn:sha1:469447a3cc384a73dbdd7412b1d32b87ee0cacd2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>gta6rt: offline WinHttpSendRequest with context 0 keeps the option's context</title>
<updated>2026-11-22T22:03:06+00:00</updated>
<author>
<name>kotorvr</name>
<email>332716892+kotorvr@users.noreply.github.com</email>
</author>
<published>2026-11-22T22:03:06+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=86be100f3a5917ee3c850ffd453015da83617b31'/>
<id>urn:sha1:86be100f3a5917ee3c850ffd453015da83617b31</id>
<content type='text'>
WinHttpSendRequest assigned its dwContext to the request unconditionally, so a client that set the context with
WINHTTP_OPTION_CONTEXT_VALUE and sent with 0 got 0 back from WinHttpQueryOption and in its REQUEST_ERROR and
HANDLE_CLOSING callbacks. The host's winhttp.dll (Windows 11, asynchronous session, loopback) keeps the option's
value in all three. A nonzero dwContext still replaces it.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Seven fixes from an outside contributor (sent as patches, applied without the author's name)</title>
<updated>2026-11-22T21:55:46+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-22T21:55:46+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=4c52ce27a6cf4af2bbf07a343ede39c5f1572b8d'/>
<id>urn:sha1:4c52ce27a6cf4af2bbf07a343ede39c5f1572b8d</id>
<content type='text'>
- rdna2spirv: declare each packed vertex input register once; a register whose elements disagree on the component
  type is refused (SHADER-644).
- runtime: a title's VirtualAlloc drops the console's MEM_GRAPHICS / MEM_TITLE type bits the host rejects (RT-217).
- runtime: XPersistentLocalStorageImpl is served from &lt;overlay&gt;\persistent with the package's 2048 MB quota
  (RT-219; layout from the public docs, not measured in a caller).
- runtime: G:\ names the package and T:\ a scratch folder in the overlay; paths under the configured folders and
  every path with no folders configured stay host paths (RT-218).
- winhttp_offline: header blocks and timeouts the host WinHTTP rejects are rejected the same way.
- cfg_structure.run: a limit of zero or less runs no blocks.
- shader_meta: an s_movk_i32 with a register operand and a float immediate beyond float32 are left unknown instead
  of raising.

Each comes with a test that fails on the old code. Conflicts with main resolved here (internal_dir() hides T:'s
folder; both file_system_test blocks kept).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>gta6rt: the offline WinHTTP stub passes a handle's context value to its children</title>
<updated>2026-11-22T21:19:59+00:00</updated>
<author>
<name>shdann</name>
<email>28006689+shdann@users.noreply.github.com</email>
</author>
<published>2026-11-22T21:19:59+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=0f83451af95d7681176637f1da43052499cbe673'/>
<id>urn:sha1:0f83451af95d7681176637f1da43052499cbe673</id>
<content type='text'>
make_handle copied the parent's status callback and notification mask to
a new handle and left its context at 0. The host's winhttp.dll also
passes WINHTTP_OPTION_CONTEXT_VALUE on: a connection and a request start
with the context their parent has when they are made, WinHttpQueryOption
returns it and their HANDLE_CREATED and HANDLE_CLOSING callbacks carry
it. A context set on the handle itself, or given to WinHttpSendRequest,
still replaces it.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
