rea/src/dotnet
Kaoru0822 90e37f4152
fix(managed): report malformed PE layouts as invalid input (#2194)
* fix(managed): report malformed PE layouts as invalid input

readManagedPeLayout raises ManagedReaderFailure for DOS, COFF and section
header failures such as section data past EOF. Those escaped the managed
inspectors, so ManagedStaticProvider wrapped them as ProviderAdapterError
and the CLI and MCP reported execution_failure with advice to run rea
doctor. Map format failures to an invalid_format input issue carrying the
reader's detail, as inspect-pe-resources and inspect-go-binary do.

Fixes #2191

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

* fix(managed): route unmappable PE layouts through one input error

inspect-managed-native-boundaries caught a layout-level ManagedReaderFailure
itself and returned an empty malformed inspection with exit 0, while the
other managed operations now report the same bytes as invalid input. Let
the layout failure reach the provider's invalid_format mapping; metadata
failures after a readable layout still return malformed coverage.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 06:53:26 -07:00
..
ManagedArtifactFailures.test.ts fix(managed): admit ReadyToRun images built for non-Windows hosts (#1985) 2026-10-12 08:41:23 +08:00
ManagedArtifactInspector.test.ts fix(evidence): retain unreadable PE and Darwin process facts 2026-10-12 11:59:23 +08:00
ManagedArtifactInspector.ts fix(evidence): retain unreadable PE and Darwin process facts 2026-10-12 11:59:23 +08:00
ManagedCilDecoding.test.ts fix(dotnet): validate managed metadata and CIL boundaries (#938) 2026-10-08 00:17:26 +08:00
ManagedDecodeBudget.test.ts fix(managed): bind row budget charges to metadata identities (#1897) 2026-10-12 00:33:51 +08:00
ManagedDecodeBudget.ts fix(managed): bind row budget charges to metadata identities (#1897) 2026-10-12 00:33:51 +08:00
ManagedExceptionRegionValidation.ts fix(dotnet): validate managed metadata and CIL boundaries (#938) 2026-10-08 00:17:26 +08:00
ManagedMemberInspector.test.ts feat(managed): select declaring types in inspect_managed_members 2026-10-12 08:31:37 +08:00
ManagedMemberInspector.ts feat(managed): select declaring types in inspect_managed_members 2026-10-12 08:31:37 +08:00
ManagedMemberInspectorCore.ts fix(managed): share first-match member ownership indexes 2026-10-12 04:33:25 +08:00
ManagedMemberInstructionDecoder.ts fix(managed): bound transient CIL by decoded instruction count (#1822) 2026-10-11 22:51:41 +08:00
ManagedMemberOwnership.test.ts fix(managed): share first-match member list ownership (#1955) 2026-10-12 05:06:41 +08:00
ManagedMemberOwnership.ts fix(managed): share first-match member ownership indexes 2026-10-12 04:33:25 +08:00
ManagedMemberPointerBudget.test.ts fix(managed): resolve member ownership through pointer tables (#1886) 2026-10-12 01:40:48 +08:00
ManagedMemberPointers.test.ts fix(managed): resolve member ownership through pointer tables (#1886) 2026-10-12 01:40:48 +08:00
ManagedMemberPointers.ts fix(managed): resolve member ownership through pointer tables (#1886) 2026-10-12 01:40:48 +08:00
ManagedMemberRows.ts feat(managed): select declaring types in inspect_managed_members 2026-10-12 08:31:37 +08:00
ManagedMetadataExtraData.test.ts fix(managed): honor metadata ExtraData before table decoding (#1893) 2026-10-12 02:28:22 +08:00
ManagedMetadataHeaps.test.ts refactor(managed): derive inspection from PE CLI extents 2026-09-29 17:35:41 +08:00
ManagedMetadataHeaps.ts fix(managed): bind row budget charges to metadata identities (#1897) 2026-10-12 00:33:51 +08:00
ManagedMetadataInventory.ts fix(managed): resolve member ownership through pointer tables (#1886) 2026-10-12 01:40:48 +08:00
ManagedMetadataInventoryRows.ts fix(artifacts): preserve ZIP identities and partial managed metadata 2026-10-12 05:57:35 +08:00
ManagedMetadataLayout.ts fix(io): consolidate managed snapshots and retain cleanup ownership 2026-10-12 14:46:37 +08:00
ManagedMetadataRowSizes.ts fix(managed): resolve member ownership through pointer tables (#1886) 2026-10-12 01:40:48 +08:00
ManagedMethodBodyReader.ts fix(io): consolidate managed snapshots and retain cleanup ownership 2026-10-12 14:46:37 +08:00
ManagedNativeBoundaryHelpers.ts perf(mcp): keep Playwright and type-only imports off MCP startup (#1691) 2026-10-10 21:04:05 -07:00
ManagedNativeBoundaryInspector.test.ts fix(artifacts): retain ASAR resources through cleanup failures 2026-10-12 05:05:21 +08:00
ManagedNativeBoundaryInspector.ts fix(managed): report malformed PE layouts as invalid input (#2194) 2026-10-12 06:53:26 -07:00
ManagedPe.fixture.ts fix(managed): share first-match member ownership indexes 2026-10-12 04:33:25 +08:00
ManagedPeReader.ts fix(evidence): retain unreadable PE and Darwin process facts 2026-10-12 11:59:23 +08:00
ManagedReaderFailure.ts fix(managed): budget decoding before representation expansion 2026-10-11 00:03:19 +08:00
ManagedSnapshot.ts fix(io): consolidate managed snapshots and retain cleanup ownership 2026-10-12 14:46:37 +08:00
ManagedStaticProvider.ts fix(managed): report malformed PE layouts as invalid input (#2194) 2026-10-12 06:53:26 -07:00
ManagedStaticProviderMetadata.ts refactor(providers): use canonical artifact and managed identities 2026-10-10 00:49:14 +08:00