[removed by author] #313
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/318"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by thegl0w on 2026-11-21T21:56:24Z.
[removed by author]
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T02:43:18Z.
The writer pass promotes an attribute loaded from a writable section to source="constant" when it finds no RIP-relative store. A write through a pointer to that word can change the value before XMemAlloc, but this branch would still make --fail-on-unresolved report success. Please keep the initial value and the absence of known direct writers as diagnostic evidence and classify that path as unresolved (unless immutability is independently established). Add a source-built case with a store through an address held in a register, followed by the RIP-relative load into EDX. The read-only constant cases should still resolve and the new case should trip --fail-on-unresolved.
Imported from R0Y00/Xbox2Windows. Originally posted by thegl0w on 2026-11-22T03:00:27Z.
Agreed: having no direct writer doesn't show the word is immutable. Fixed in
f12bf8a.--fail-on-unresolvedfails on them. The report keeps the initial value (word), the RIP-relative writes found (written_at, possibly empty) and adetailsaying writes through pointers aren't tracked. Nothing in the scanner establishes immutability today, so no path leads back toconstant.read_only_constantis unchanged.pointer_written: It's insites_not_fully_constant, so--fail-on-unresolvedfails on it. Under the previous rule it was reported as constant0xa8004000, although the stored word is0x05e50000.data_constantcase is nowdata_unwritten, and is also unresolved.written_at, both make the check fail.f12bf8a, Windows 11 build 26300, hardware included, debug layer enabled: 144/144 passed (3 capability skips), includingxmem_attribute_scan(23 fixture sites) anddocs_links.The PR description is updated to match.
Imported from R0Y00/Xbox2Windows. Originally posted by thegl0w on 2026-11-22T03:06:46Z.
Rebased onto
main(1088c1b). #411 had rewritten the Python check list in AGENTS.md, which conflicted. The writable-data fix described above is nowfc89726, unchanged apart from the hash.tests/xmem_attribute_scan_check.pyafterpso_readiness_check.py, matching its place in the workflow's Python job.67017e5adds the check to the Linux list indocs/non-windows-hosts.mdin the same place. I left the macOS list unchanged, because it installs onlypefileand the scanner also needsiced-x86(pinned inrequirements-dev.txt). Adding it there would also mean changing that install line, which I haven't tested on macOS.67017e5, Windows 11 build 26300, hardware included, debug layer enabled: 157/157 passed (3 capability skips), includingxmem_attribute_scananddocs_links.