Commit Graph
416 Commits
Author SHA1 Message Date
morluto 88983ebac7 fix(macho): prove command table framing before capacity (#12376)
* fix(macho): prove command table framing before capacity

* test(macho): match shared table admission precedence

* test(macho): separate encryption capacity from invalid framing
2026-11-19 15:19:50 +00:00
morluto cf9b474292 refactor(nativeaot): share checked MethodTable framing (#12375) 2026-11-19 15:00:02 +00:00
morluto 1b172f1e02 refactor(dotnet): share checked CIL operand and exception reads (#12372) 2026-11-19 14:43:25 +00:00
morluto 7eac002d5e fix(pcap): retain admitted DNS truncation facts (#12373) 2026-11-19 14:35:56 +00:00
morluto 091b8b0339 refactor(dotnet): read metadata constant scalars through BinaryReader (#12371) 2026-11-19 14:26:54 +00:00
morluto 17ad9c14ff fix(pe): validate resource name extents before capacity (#12368) 2026-11-19 14:22:26 +00:00
morluto 5f258086b0 refactor(macho): share checked segment and section framing (#12366) 2026-11-19 09:08:25 -05:00
morluto 156303f6ed refactor(python): read marshal scalars and bytecode magic through BinaryReader (#12362)
refactor(python): read marshal numbers through BinaryReader
2026-11-19 09:07:48 -05:00
morluto 7758d03c5d fix(artifacts): require DOS magic before applying Windows path semantics (#12340) 2026-11-19 13:52:31 +00:00
morluto 7e7516fbe9 refactor(il2cpp): share metadata section table framing (#12364) 2026-11-19 13:50:12 +00:00
morluto 1530507a7e refactor(rust): project dependency limits from parser facts (#12358) 2026-11-19 13:40:30 +00:00
morluto be54ffc8cd refactor(png): share chunk framing and metadata reads (#12357) 2026-11-19 13:39:49 +00:00
morluto 14aca264ea fix(windows): report out-of-spec shortcut StringData counts (#12352) 2026-11-19 13:33:05 +00:00
morluto 5a27508ae3 refactor(pe): read optional header fields through BinaryReader (#12351) 2026-11-19 08:26:25 -05:00
morluto 9a3aec331b refactor(elf): use shared readers for fixed and dynamic fields (#12345) 2026-11-19 08:24:57 -05:00
morluto 9b2c666033 fix(mips): validate GNU attribute extents before read limits (#12348) 2026-11-19 08:21:16 -05: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 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 77be47fbf9 refactor(dotnet): decode manifest fields through BinaryReader (#12332) 2026-11-19 12:56:14 +00:00
b6363efc97 refactor(errors): compose multi-part provider cleanup failures through one owner (#12002)
* refactor(errors): compose multi-part provider cleanup failures through one owner

CdpBrowserProvider, CdpElectronProvider, FridaInstrumentationManager and
PlaywrightBrowserScenarioProvider each built the same composite by hand: a
ProviderCleanupError listing the parts' resources, an AggregateError cause,
and bindCleanupDependencies over the parts. providerCleanupErrorFromFailures
in src/domain/analysisErrorCleanup.ts now owns that composition. `causes`
keeps non-AnalysisError failures in the aggregate cause without making them
own completion, as the CDP providers did; `message` keeps the aggregate
messages Frida and Playwright used.

Tests: helper unit tests, new close-composition tests for both CDP providers,
and a Playwright test with two failed cleanup retries. They pass on the base
revision and on this change, and fail when the helper drops the dependency
binding, the extra causes or the message.

Lowers the cleanup-dependency-binding baseline to 43 files / 73 sites.

Refs #11859

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* style(test): format the Playwright cleanup test with oxfmt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(errors): assert cleanup composition facts instead of reason prose

Follows docs/development/testing.md: the close-composition tests now check
provider, operation, resources, aggregate causes and completion, not the
explanatory reason or aggregate message. A harmless wording change passes;
a lost binding, lost cause or wrong operation still fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Anant Mandanka <anant.mandanka@renaissancejewel.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 12:51:28 +00:00
morluto 9b642175b0 fix(nib): validate row framing before decode capacity (#12327)
* fix(nib): validate value row framing before capacity

* fix(nib): reserve framing for later table rows
2026-11-19 12:50:32 +00:00
Vaibhav Gupta 5bdb7af43e refactor(model): read GGUF and safetensors fields via BinaryReader (#12318)
Route the 26 raw Buffer reads in GgufHeader and the 2 in
SafetensorsHeader through BinaryReader. Add u8, i8, i16, i32, i64,
f32 and f64 accessors to BinaryReader, with the same range checks as
u16/u32/word, since GGUF metadata stores signed and floating scalars.

Every migrated site reads an exact-size buffer from
ModelHeaderReader.take(), so outputs and errors are unchanged.
Shrink the raw-buffer-read baseline from 102 files / 711 sites to
100 / 683.

Refs #11865
2026-11-19 07:42:40 -05:00
morluto 96dae7de70 fix(node-sea): reserve framing for required blob fields (#12317) 2026-11-19 12:36:50 +00:00
vaibhav375andClaude Opus 5.5 c569982ef3 refactor(gpu): read GPU container fields through BinaryReader (#12313)
Move the CUDA fatbinary, Clang offload bundle, CCOB, AMDGPU metadata
and inventory reads in src/gpu onto BinaryReader and drop the four
files from the raw-buffer-read baseline. GpuSource.read already admits
every range, so refusals are unchanged.

Refs #11865

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 12:32:50 +00:00
ClarkandClark 7bc8a62c21 refactor(errors): inherit live cleanup ownership through shared domain helper (#12077)
Co-authored-by: Clark <301422770+clark970417-eng@users.noreply.github.com>
2026-11-19 07:31:26 -05:00
morluto 23ad8ce578 fix(nib): validate table extents before decode budgets (#12315) 2026-11-19 12:28:49 +00:00
morluto cffff06ee7 fix(apple): bound FAT disambiguation to plausible JVM classes (#12316) 2026-11-19 07:28:34 -05:00
morluto e9c6723d8a fix(dmg): require the declared GPT header bytes (#12311) 2026-11-19 12:23:59 +00:00
morluto 7b85358a50 fix(devicetree): share structure bounds with FIT recognition (#12298)
* fix(devicetree): share structure bounds with FIT recognition

* fix(devicetree): share declared block overlap admission
2026-11-19 12:04:53 +00:00
morluto 95b4b8445c fix(captures): report the enforced Protobuf decode budget (#12300) 2026-11-19 12:02:55 +00:00
morluto f48417f312 fix(gpu): admit offload bundle entry extents before limits (#12299) 2026-11-19 12:02:04 +00:00
morluto 224e5e231f refactor(apple): project IPS parser budgets from owned limit facts (#12289)
* refactor(apple): project IPS parser budgets from owned limit facts

* test(apple): verify IPS recovery without freezing its wording
2026-11-19 11:52:11 +00:00
morluto 93ed53845a fix(bun): validate raw PE graph section bounds (#12282) 2026-11-19 11:37:55 +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
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
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
morluto 1aab66f12c refactor(ntfs): decode attributes within their declared values (#12211)
* refactor(ntfs): decode attributes within their declared values

* refactor(ntfs): bound USN journal record reads (#12216)

refactor(ntfs): bound USN record fields with BinaryReader
2026-11-19 05:43:39 +00:00
morlutoandrudycelekli 166347f38b fix(pyinstaller): validate CArchive member name framing (#12214)
Co-authored-by: rudycelekli <47457359+rudycelekli@users.noreply.github.com>
2026-11-19 05:35:10 +00:00
morluto 0e07437bc7 refactor(macho): report inspection limits from LimitRef (#12205) 2026-11-19 05:33:06 +00:00
morluto 84551888ec refactor(python): report pyc parser limits from LimitRef (#12213) 2026-11-19 05:32:28 +00:00
morluto 140ccddc11 fix(managed): keep checked row reads under the managed cursor (#12204) 2026-11-19 05:26:47 +00:00
morluto 5a9b7f2e3c refactor(ntfs): share FILE record header and fixup facts (#12202)
refactor(ntfs): share FILE record declarations
2026-11-19 05:21:57 +00:00
morluto 31be73e498 refactor(devicetree): report parser budgets from LimitRef (#12201) 2026-11-19 05:20:40 +00:00
morluto 48799e67c7 refactor(uimage): bound format fields with BinaryReader (#12199) 2026-11-19 05:20:22 +00:00
morluto 9968f27fac refactor(web): report source-map output limits from LimitRef (#12200) 2026-11-19 05:19:45 +00:00
morluto b946cb83dd fix(zip): bound central records to their directory (#12197) 2026-11-19 05:07:28 +00:00
morluto 2ca44e56ac fix(wxapkg): admit member extents under one index layout (#12192) 2026-11-19 04:59:56 +00:00
ClarkandClark 0fe6ecedc2 refactor(v8): derive code-cache budget refusal from LimitRef (#12078)
Co-authored-by: Clark <301422770+clark970417-eng@users.noreply.github.com>
2026-11-18 23:57:12 -05:00