Commit Graph
6600 Commits
Author SHA1 Message Date
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
ShuaixinHuang 9e1a84b216 perf(web): speed up script export path conflict detection (#12225)
perf(web): reduce work for script export path conflicts
2026-11-19 06:43:03 -05:00
ShuaixinHuang b4a29597b3 perf(ghidra): bound UTF-8 encoding for diagnostic tails (#12219) 2026-11-19 06:42:58 -05:00
ShuaixinHuang 661dec7e6b perf(browser): bound retained network body verification memory (#12231)
perf(browser): bound memory for retained body verification
2026-11-19 06:42:53 -05:00
Lewis WangandClaude Fable 5.2 89b2d398eb fix(plist): keep literal carriage returns in XML plist keys and strings (#12236)
The XML plist reader replaced every literal CR and CRLF with LF before
parsing. CoreFoundation keeps them, so REA reported a different string than
plutil for the same file, and two keys that differ only in their line ending
collapsed into one repeated key.

The document is now parsed as written. Source spans for integer, real, date
and data literals already count CR, CRLF and LF as one line break each.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 06:42:48 -05:00
Lewis WangandClaude Fable 5.2 a143a2811e fix(native): size link-time relocation kinds in x86-64 and AArch64 objects (#12235)
* fix(native): keep an assumed relocation width from reporting a section overrun

inspect_native_initializers assumed that a relocation of a type it does not
size writes a whole word. For a 4-byte field that ends its section, such as
R_X86_64_PLT32 or R_AARCH64_CALL26 on a tail call that ends .text, the assumed
word ran past the section, so the object was reported incomplete with
"A section relocation extends beyond its target mapping".

An assumed width is now narrowed to the bytes its mapping holds. A relocation
of known width that runs past its section is still reported.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(native): use the tail-call relocation clang emits for AArch64

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(native): size link-time relocation kinds instead of narrowing an assumed width

Review found that narrowing an assumed word to its mapping hid a real overrun
of an unlisted kind and, in a linked image, a slot behind zero-fill bytes.
The mapping remainder does not establish what a relocation writes.

The section walk is restored to its previous logic. The width table now sizes
the link-time kinds clang emits into x86-64 and AArch64 objects, as the i386
row already does, so a call that ends .text is a known 4-byte field. A kind
the table does not hold keeps its assumed word and its overrun note.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(native): cover a newly sized kind in the loader relocation walk

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 06:42:42 -05:00
3d460d1e0c fix(godot): keep PCK members within the pack data region (#12269)
* fix(godot): keep PCK members within the pack data region

* fix(godot): reserve the complete PCK header extent

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 11:41:37 +00:00
morluto 510301969e refactor(parsers): share strict UTF-8 byte validation (#12281) 2026-11-19 11:41:02 +00:00
morluto 6fdfdc4af1 fix(web): share TypeScript source-map filename grammar (#12286) 2026-11-19 11:39:52 +00:00
morluto 9c0ebe7ff7 perf(sigrok): retain only selected decoder catalog rows (#12284)
perf(signals): retain only selected decoder discovery rows
2026-11-19 11:38:07 +00:00
morluto 93ed53845a fix(bun): validate raw PE graph section bounds (#12282) 2026-11-19 11:37:55 +00:00
ShuaixinHuangandmorluto ae44fa4ece perf(json): count long unescaped ASCII strings without a JS loop (#12244)
* perf(json): count long unescaped ASCII strings without a JS loop

* perf(json): count unescaped UTF-8 prefixes without rescanning

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 11:36:56 +00:00
morluto 4aeeb7e4fb refactor(wasm): interpret WABT section diagnostics once (#12285) 2026-11-19 11:36:52 +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 35bbba3023 perf(entropy): bound working storage for run rankings (#12210) 2026-11-19 06:35:23 -05:00
ShuaixinHuang ce02c899e8 fix(maven): classify embedded brackets as literal qualifiers (#12228) 2026-11-19 06:35:18 -05:00
ShuaixinHuang eac4a1cd14 fix(sbom): withhold Package URLs for Go backslash paths (#12206) 2026-11-19 06:35:13 -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
ShuaixinHuang e36bcfec67 perf(go): batch literal text in quoted build settings (#12238) 2026-11-19 06:35:02 -05:00
ShuaixinHuang 1a89383a79 fix(reference): refuse undecodable Git directory pointers (#12209) 2026-11-19 06:34:36 -05:00
ShuaixinHuangandShuaixinHuang bf04d616fd fix(dotnet): validate bundle extents before adjustable limits (#12270)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-19 06:25:27 -05:00
ShuaixinHuangandShuaixinHuang e744f5d9e4 fix(dotnet): validate bundle string lengths before reader limits (#12272)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-19 06:25:23 -05:00
ShuaixinHuangandShuaixinHuang 447735c170 fix(android): require AVB vbmeta to follow the original image (#12271)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-19 06:25:19 -05:00
ShuaixinHuangandmorluto abba94101a perf(json): skip literal runs during duplicate member scans (#12248)
* perf(json): skip literal runs during duplicate member scans

* test(json): cover parity across long string scan boundaries

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 11:25:07 +00: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
morluto a9ad92001d fix(bun): admit Mach-O graph segments within their image (#12275) 2026-11-19 06:18:37 -05:00
ShuaixinHuang 3acc952925 perf(ghidra): scan analysis seed lines incrementally (#12250) 2026-11-19 11:18:10 +00:00
ShuaixinHuang cb00a4c8de perf(artifacts): decode URL path escapes in one byte buffer (#12241) 2026-11-19 06:17:23 -05:00
ShuaixinHuang 41c00f52cb perf(output): avoid encoding UTF-8 excerpts that fit (#12243) 2026-11-19 06:17:19 -05:00
ShuaixinHuang 09f59494e2 perf(environment): compare recorded state without serializing JSON (#12255) 2026-11-19 06:16:01 -05:00
ShuaixinHuang 3506672e9f fix(cli): clamp token windows for dispatcher errors (#12242) 2026-11-19 06:15:41 -05: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
ShuaixinHuang 247f919a63 fix(ghidra): preserve properties after empty continuations (#12246) 2026-11-19 06:14:42 -05:00
ShuaixinHuang 35f02b2a3c fix(desktop): recognize document locks with multiline names (#12249) 2026-11-19 06:14:34 -05:00
ShuaixinHuang 7eb8f7506f fix(desktop): match cached APT releases for IPv6 hosts (#12240) 2026-11-19 06:14:30 -05:00
ShuaixinHuang 51e48b8a28 perf(search): avoid intermediate collections for one alias (#12252) 2026-11-19 06:11:52 -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
ShuaixinHuangandShuaixinHuang a3a7922243 perf(ntfs): skip long zero runs in offline USN journals (#12274)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-19 06:09:30 -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 b74b314fbd fix(node-sea): validate Mach-O segment bounds before blob limits (#12263) 2026-11-19 08:58:48 +00: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 241ef45c12 fix(bun): validate named ELF graph section backing (#12260)
* fix(bun): validate named ELF graph section backing

* fix(bun): validate ELF string table extent before lookup
2026-11-19 03:50:00 -05: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
ShuaixinHuang d7aee71bc7 perf(bun): validate metadata UTF-8 without round-tripping bytes (#12254) 2026-11-19 02:41:47 -05:00
morluto 56d31bc7a8 fix(unityfs): validate encoded block extents before decoder limits (#12223)
Use BinaryReader for the admitted header and directory scalars. Keep the decoder allowance for physically possible encoded blocks.
2026-11-19 07:13:33 +00:00