Commit Graph
2748 Commits
Author SHA1 Message Date
ebd709cef5 fix(esp): disclose partition entries outside the table checksum (#12384)
* fix(esp): disclose partition entries outside the table checksum

* fix(esp): label the partition checksum offset origin

* fix(esp): count partition entries outside the table MD5

The coverage warning was only prose, and it presented the MD5 entry's
table-relative offset without a structured fact. Record
entriesAfterChecksum on the MD5 result, project it as
entries_after_checksum, and keep the warning as presentation.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* fix(esp): accept saved flash inventories without the checksum count

A required entries_after_checksum rejected ESP flash Evidence written
before the field existed. Keep the count exactOptional so omission
stays unknown, and still emit it for new inventories.

Co-authored-by: morluto <morluto@users.noreply.github.com>

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
2026-11-19 11:59:02 -05:00
8c3dbd99e1 fix(desktop): bind dconf profiles to selected database sources (#11161)
* fix(desktop): bind dconf profiles to selected database sources

* fix(desktop): resolve dconf before changing working directory

* fix(desktop): retain refused dconf lookup diagnostics

* fix(desktop): preserve execution-time dconf search fallback

* fix(desktop): keep host spawn failures outside dconf fallback

* fix(desktop): retain staged reader cleanup through command close

* test(kuna): await eviction boundary events explicitly

* test(kuna): bound lifecycle acknowledgements through shared owner

Cherry-picked shared follow-up from a5761c7545.

* fix(desktop): keep dconf sources independent of wrapper stdin

* test(desktop): restrict procfs command checks to Linux

* fix(desktop): own dconf wrapper cleanup before source retirement

* fix(desktop): retain dconf preparation inspection owners

* fix(desktop): classify dconf read failures by kind and errno

Record the failure kind, host errno, exit status, selected command, and
child stderr on DconfDump, and carry those facts to view_failure. Tests
assert the typed fields instead of error prose, including a PATH refusal
whose executable is not the last candidate.

* test(desktop): gate real dconf diagnostics on Linux

The real reader checks /proc file descriptors before launch, so macOS
reports descriptor-unavailable/ENOENT instead of launch-failed/EACCES.
Keep that launch refusal on Linux and cover the Evidence contract with
a mocked reader on every platform.

Co-authored-by: morluto <morluto@users.noreply.github.com>

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
2026-11-19 11:40:08 -05:00
4491c84c82 fix(node-sea): bound duplicate blob verification work (#11736)
* fix(node-sea): bound duplicate blob verification work

* test(mcp): observe cleanup failures at their current delivery boundary

* fix(mcp): preserve workflow completion progress through delivery

* test(setup): keep the Windows Kimi profile fixture on a supported profile

The Windows-only case at `clientConfigurationEnvironment.test.ts:226` wrote
`rea_mcp_input_schema_profile: "full"`. That profile was retired: the reader
now refuses it ("REA_MCP_INPUT_SCHEMA_PROFILE accepts only \"compact\" …"),
so `configureClientConfiguration` returned `failed/readback` before writing
and the case failed on every Windows run, including main's own
`Windows capability and package lane`.

The case has no Windows dependency — it passes an explicit `configPath` and
the Kimi write dialect is the same everywhere — so it now runs on every
platform, which is what let the stale value rot unnoticed. The fixture keeps
the lowercase explicit key the case is about, with the supported value.

Verified on `main` `d6bcfc10`: the same fixture driven through
`configureClientConfiguration(..., "win32")` on this host reproduced
`{"status":"failed","reason":"readback"}` with the retired value and now
returns `{"status":"configured"}` with `compact`. The file's 75 cases pass
here (66 run, 9 platform-conditioned skips) and `check:fast` passes.

* test(ci): restore verifier and MCP contract regressions

* test(captures): assert adapter-owned input issue field names

* fix(ghidra): avoid Java probes for missing installations

* test(ghidra): drop duplicate absent-installation coverage

Merging main reapplied the #11732 case beside the copy already on main.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* test(node-sea): assert duplicate-blob refusal without stdout prose

The CLI coverage already checks the truncated code and limit details.

Co-authored-by: morluto <morluto@users.noreply.github.com>

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: g0at <50488370+g1at@users.noreply.github.com>
Co-authored-by: IvenKooLab <276572622@qq.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
2026-11-19 11:25:23 -05:00
morluto ed05170424 fix(mips): recognize unsupported Android relocation declarations (#12397)
fix(elf): retain Android relocation declarations in MIPS coverage
2026-11-19 15:37:21 +00:00
6a5d77bf21 fix(windows): floor LinkInfo string offsets at the mandatory header (#12403)
A LinkInfoHeaderSize below 0x1C no longer lowers the string-offset floor.
Reserved 0x1D..0x23 headers still end at their declared size, so ANSI
fields after that header stay readable.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
2026-11-19 10:35:40 -05:00
morluto de9da86333 fix(windows): validate opaque shortcut block framing (#12401)
* fix(windows): check shortcut PropertyStore block size

* fix(windows): validate shortcut Shim block framing
2026-11-19 15:31:11 +00:00
morluto 0eac37277d fix(pe): distinguish positional resource framing from capacity (#12402) 2026-11-19 15:26:52 +00:00
morluto 2773327843 fix(android): validate boot header size before capacity (#12396)
fix(android): distinguish header layout and capacity limits
2026-11-19 15:23:27 +00:00
morluto e59b4f6faa fix(android): validate vendor ramdisk table before capacity (#12395)
fix(android): validate vendor ramdisk table framing before capacity
2026-11-19 15:22:42 +00:00
morluto a22cbcfd7d fix(rust): validate WebAssembly section framing before capacity (#12394)
* fix(rust): validate WebAssembly section framing before capacity

* docs(rust): describe the WebAssembly payload limit
2026-11-19 15:22:34 +00:00
morluto dd4be52a83 fix(windows): flag reserved shortcut LinkInfo header sizes (#12388)
fix(windows): report reserved LinkInfo header sizes
2026-11-19 15:22:03 +00:00
morluto a4c4366db2 fix(windows): report missing shortcut Darwin and Shim blocks (#12378)
* fix(windows): report missing shortcut Darwin and Shim blocks

* test(windows): accept declared Darwin and Shim blocks
2026-11-19 15:17:49 +00:00
Nianze WuandCursor Agent a4a633bae7 fix(windows): bound shortcut string offsets to structure data (#10416)
* fix(windows): reject shortcut paths into LinkInfo headers

* test(windows): cover shortcut suffix header offsets

* fix(windows): bound nested shortcut string offsets

* fix(windows): compare only complete shortcut targets

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-19 10:15:38 -05:00
morlutoandNianze Wu 370602cfbb fix(devicetree): report nonzero structure padding (#12361)
Keep DTB and FIT observations when an admitted alignment gap contains
nonzero bytes. Retain one parser-owned diagnostic with the count and
first file offset.

Refs #10179.

Co-authored-by: Nianze Wu <wunianze666@gmail.com>
2026-11-19 13:47:46 +00:00
a44ff73676 fix(apple): bound bundle Info.plist reads before decoding (#12279)
* fix(apple): bound bundle Info.plist reads before decoding

* refactor(apple): report plist input limits through shared failures

* fix(apple): retain bundle plist descriptors through target cleanup

* test(apple): verify Hopper retries bundle plist cleanup

* fix(apple): preserve typed cancellation through bundle plist cleanup

* fix(apple): preserve plist read failure through late cancellation

* fix(apple): preserve cancellation during plist close retry

* docs(apple): document bundle plist admission policy

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 13:41:40 +00:00
morluto 1cf9bc86c8 fix(desktop): validate Debian package control output as UTF-8 (#12355) 2026-11-19 13:36:30 +00:00
morluto 14aca264ea fix(windows): report out-of-spec shortcut StringData counts (#12352) 2026-11-19 13:33:05 +00:00
morluto 9b2c666033 fix(mips): validate GNU attribute extents before read limits (#12348) 2026-11-19 08:21:16 -05:00
ShuaixinHuang 0c672c19a9 fix(hopper): explain disclaimed Apple Events responsibility (#12309)
* fix(hopper): explain disclaimed Apple Events responsibility

* test(hopper): cover disclaimed Apple Events guidance

* docs(hopper): document runtime Apple Events attribution
2026-11-19 13:12:42 +00:00
morluto 66bb3e932e fix(desktop): validate ELF dependency table extents before capacity (#12344)
fix(desktop): validate ELF table extents before inventory limits
2026-11-19 13:10:17 +00:00
morluto 00170c74bb fix(bun): validate graph extents before payload limits (#12330) 2026-11-19 13:04:47 +00:00
morluto 6b65e63dfe fix(gguf): reserve framing for fields after metadata values (#12338)
fix(model): reserve GGUF framing for required later fields
2026-11-19 13:01:44 +00:00
morluto 15150b017a fix(pe): validate certificate entry framing before capacity (#12336)
fix(pe): frame certificate entries before count admission
2026-11-19 12:57:45 +00:00
morluto 7d5e9be81c fix(trace): report the enforced JSON parser limit (#12335)
fix(browser): report Playwright trace parser limits
2026-11-19 12:57:34 +00:00
morluto f175382ed7 fix(plist): carry keyed archive parser limit facts into errors (#12324)
fix(apple): expose keyed archive parser limits in errors
2026-11-19 12:51:06 +00:00
morluto ddcd62009b docs(parsers): explain framing for later fields and rows (#12331) 2026-11-19 07:49:54 -05:00
morluto 39d20dce3d fix(pe): report the enforced resource parser limit (#12328) 2026-11-19 12:49:07 +00:00
morluto 067ebd7349 fix(gpu): preserve inventory for oversized decoded declarations (#12319)
* fix(gpu): preserve CCOB extents beyond decoded size capacity

* fix(gpu): retain CUDA entries beyond decoded size capacity (#12326)

* fix(gpu): retain CUDA entries beyond decoded size capacity

* refactor(gpu): share declared decoded size projection
2026-11-19 12:44:46 +00:00
morluto c5709b8697 fix(capture): validate PNG headers at the shared boundary (#12310)
fix(screenshot): validate IHDR encoding fields at capture
2026-11-19 12:38:50 +00:00
morluto daf5e91f39 fix(erlang): report the enforced BEAM table row limit (#12321)
* fix(erlang): report the enforced BEAM table row limit

* docs(erlang): describe the reported fixed table ceiling
2026-11-19 12:36:54 +00:00
morluto cffff06ee7 fix(apple): bound FAT disambiguation to plausible JVM classes (#12316) 2026-11-19 07:28:34 -05:00
morluto 81730f266a fix(desktop): replay observed APT repository identities (#12301)
* fix(desktop): replay observed APT repository identities

* fix(desktop): retain trustworthy APT URI observations

* fix(desktop): recognize APT comments before decoding
2026-11-19 12:21:13 +00:00
e91ddc89f9 fix(android-ota): require both payload signature fields (#12273)
* fix(android-ota): require both payload signature fields

* refactor(android-ota): share validated payload signature range

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 12:15:06 +00:00
a21a5db09d fix(erlang): report unexamined BEAM table tails (#12267)
* fix(erlang): report unexamined BEAM table tails

* refactor(erlang): own coverage in BEAM table framing

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 12:15:01 +00:00
94cbae6d0c fix(reconstruction): verify visual screenshot comparisons (#12186)
* fix(reconstruction): admit visual screenshot comparisons

* fix(reconstruction): corroborate retained visual comparisons

* fix(reconstruction): bind visual claims to distinct captures

* fix(reconstruction): distinguish visual capture pairs

---------

Co-authored-by: Josh <joshuakrishna21@gmail.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 06:57:15 -05:00
morluto c0d7e440de fix(sbom): preserve local Go modules without a Package URL namespace (#12293)
fix(sbom): require a namespace for Go Package URLs
2026-11-19 11:53:41 +00:00
morluto fce336236e fix(dotnet): check manifest bounds before metadata budget (#12287)
* fix(dotnet): check manifest bounds before metadata budget

* docs(dotnet): describe bounded manifest read windows

* fix(dotnet): validate stored member ranges before path budgets
2026-11-19 06:44:08 -05:00
Nianze Wuandmorluto 66e0bd717f fix(artifacts): preserve incomplete release text coverage (#12194)
* fix(artifacts): preserve incomplete release text coverage

* fix(release): scope lossy map references to interpreted URL text

* fix(release): ignore lossy HTML URL suffixes during file lookup

* fix(release): scope source map URL decoding uncertainty

* test(release): retain script roles in lossy HTML

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 11:43:07 +00:00
hhangandhhang 9c25fb1e29 perf(mcp): defer runtime loading for scoped stdio discovery (#12237)
* perf(mcp): defer runtime loading for scoped stdio discovery

* test(mcp): cover prompt-first scoped stdio startup

---------

Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
2026-11-19 06:35:29 -05:00
ShuaixinHuang 9600b3ac7a fix(sbom): retain source-host artifact file names (#12230)
* fix(sbom): preserve backslashes in POSIX artifact names

* test(sbom): preserve fixture drive and recorded file name
2026-11-19 06:35:08 -05:00
f235c00ef7 fix(app-bundle): apply the Info.plist decode budget to XML plists (#6699)
* fix(app-bundle): apply the plist decode budget to the XML branch

* test(app-bundle): cover the XML plist decode budget

* decode xml plist once, pass the text to the decode preflight

* fix(app-bundle): keep OpenStep plists out of the XML preflight, keep budget failures typed

OpenStep Info.plist text is not XML, so quoted markup inside it is string
data. Run the XML entity-expansion preflight only on actual XML input,
using the same format check the parser already uses. A valid OpenStep
bundle with a DOCTYPE-looking quoted string no longer fails the budget.

Budget exhaustion also keeps its own error: the resolver now returns a
typed bundle_info_plist_decode_budget_exceeded failure naming the 16 MiB
allowance instead of the malformed-plist diagnosis.

* Fix test names and budget error classification after the merge

* fix: regenerate user-visible error catalogue for plist budget constraint

* test: pin budget-exceeded bundle target to its catalogue row

* refactor(plist): give Info.plist decoding a shared owner

---------

Co-authored-by: Dextheking1 <Dextheking1@users.noreply.github.com>
Co-authored-by: benjaminkincses <4175097+benjaminkincses@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 11:24:09 +00:00
morluto b406649be0 fix(managed): require unique Module rows with ambiguous string heaps (#12277)
Apply the Module row cardinality check before interpreting either the nil or nonzero name index in a conflicting #Strings layout.
2026-11-19 11:19:07 +00:00
morluto 1230afc030 fix(web): honor the captured JavaScript language (#12278) 2026-11-19 11:19:04 +00:00
Oke Iyanuoluwa Enoch 41db934de8 fix(native): let plutil decide XML plists REA's reader refuses (#12251)
CoreFoundation reads some XML plists that strict XML rejects, such as
documents with a double hyphen in a comment or a control character in a
string. inspect_plist refused them although plutil -lint accepts them,
and the outcome depended on how file(1) described the bytes.

When REA's XML reader refuses a document's syntax, inspection now takes
the existing plutil conversion route. The result keeps format xml and a
limitation names REA's reason. A document plutil also rejects stays
refused with its diagnostic, and plist structure errors in well-formed
XML are still refused without conversion.

Fixes #12234
2026-11-19 06:15:08 -05:00
hhangandhhang 7419328ea7 fix(android): accept R8 mapping separator spacing (#12247)
Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
2026-11-19 06:09:37 -05:00
morluto a4bf59f661 fix(managed): preserve Module identity with an unresolved name (#12265)
Admit exact string heap aliases and retain independent Module row facts for distinct declarations. Bind the optional partial row to the same scope checks as named Module Evidence.
2026-11-19 06:08:59 -05:00
morluto 519547d022 fix(web): verify worker script import identity (#12264) 2026-11-19 06:07:48 -05:00
morluto fe6c9bcf66 fix(javascript): share TypeScript suffix grammar across parsers (#12257)
* fix(javascript): share TypeScript suffix grammar across parsers

* docs(javascript): explain explicit TypeScript suffix diagnostics

* fix(javascript): retain explicit-suffix assertions as complete
2026-11-19 08:56:52 +00:00
morluto ae8fb57ef0 fix(managed): preserve duplicate GUID stream ambiguity (#12217)
* fix(managed): preserve duplicate GUID stream ambiguity

* fix(managed): preserve ambiguous metadata stream declarations (#12226)

Use one stream declaration owner for heap and table diagnostics. Keep user strings and row-layout uncertainty separate from independent PE/CLI observations.

* test(managed): separate heap entries from cache behavior

* fix(managed): preserve duplicate blob heap ambiguity (#12258)

Resolve #Blob in the shared stream layout. Preserve nil references and independent facts without emitting unsupported keys, signatures or hashes.
2026-11-19 03:49:34 -05:00
Muhammad Hamzaandmorluto 93c8e0c0c8 fix(erlang): disclose BEAM bytes trailing the declared FOR1 form (#9673)
* fix(erlang): disclose BEAM bytes trailing the declared FOR1 form

A conformant FOR1 container sizes its form to the whole file, so bytes
past the form end are an unexamined appended or corrupt region. The
inspector decoded chunks only within the form but still reported
coverage.status "complete" with no mention of the surplus, so a caller
could not distinguish a clean BEAM from one carrying foreign trailing
bytes.

Compute the trailing byte count, report coverage.status "partial" with a
trailing_bytes field, and append a limitation naming the form end and the
unexamined count. Clean containers stay "complete" with trailing_bytes 0.

* fix(erlang): reparse retained BEAM Evidence without the trailing-bytes field

Evidence retained by a build predating coverage.trailing_bytes has no such
property, and projectErlangBeamView reparses that record with the strict
erlangBeamSchema. A required field rejected those records with an input error
before any summary or page could render, breaking the offline retained-Evidence
flow even for clean files.

Default coverage.trailing_bytes to 0 so historical records reparse while every
new parse still emits the concrete count and preserves each record's stored
status.

* fix(erlang): keep retained BEAM trailing coverage unknown, not zero

Defaulting coverage.trailing_bytes to 0 manufactured a "no trailer" reading for
Evidence retained before the field existed, even when its retained bounds
(artifact.bytes versus form.location.bytes) prove a trailer. Make the field
optional so a pre-field record reparses as unknown instead of a fabricated
zero, while every new parse still emits the concrete count.

* fix(erlang): admit chunk extents before applying count limits

* docs(erlang): explain trailing BEAM coverage

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 07:44:30 +00:00