Files
rea/scripts/verify/baselines/resource-constraint-constructor.json
T
morluto 789ca04125 fix(pe)!: bound static readers by the bytes they read, not file size (#14262)
* fix(pe)!: share one loader-equivalent PE header owner across static readers

Resources and certificates now admit headers through readPeImage, and
resources map RVAs through the shared file-backed mapping. The owner reads
the optional header at fixed offsets, caps data directories at 16, and lets
a PE signature at e_lfanew override a DOS relocation table. Export, import,
TLS and resource directories are read at their RVA whatever Size declares.
Disregarded declarations are reported in header_anomalies.

BREAKING CHANGE: import and delay-import walks continue to the null
descriptor past a short directory Size instead of stopping with a
malformed_entry issue, and inspect-pe-resources reports an unsupported
optional-header magic as unsupported_target.

* fix(pe): keep valid DOS relocation tables owning e_lfanew

Only a relocation table that describes no DOS load module yields e_lfanew
to a PE signature; update MZ/PE conformance to the shared owner.

* fix(pe)!: bound static readers by the bytes they read, not file size

max_file_bytes now counts the header prefix and every positional read of
headers, directory tables and their referenced ranges. The identity pass
that hashes the whole file is bounded only by a fixed whole-file ceiling:
4 GiB minus one byte for the PE-only readers, whose file offsets are 32-bit,
and 512 MiB for hardening and exports. An exhausted allowance is a capacity
refusal with a typed parameter details.limit.

BREAKING CHANGE: max_file_bytes no longer refuses a large file whose reads
fit; an exhausted read allowance reports resource capacity instead of
file-size, and only a file above the fixed ceiling reports file-size.

* fix(pe): walk resource trees within file-backed bytes and cite TLS reads

The resource walk is bounded by the file-backed run from the directory RVA
rather than its Size, and a Size that ends before the bytes walked is a
directory_size_below_structure anomaly. The TLS result carries
structure_location for the structure read past a short Size, and Evidence
cites it.

* test(pe): assert a refused read never reaches the descriptor

* test(pe): use a resource cycle as damage now that a short Size is read

* fix(pe): read resource trees past an oversized Size and keep damaged MZ headers malformed

An oversized resource Size is reported without requiring its unused bytes
to map. A Windows-header candidate is malformed when the DOS module is also
invalid, and the guide states that a valid DOS relocation table owns
e_lfanew.

* feat(pe): report image_base and IAT slot VAs in static PE results (#14263)

* feat(pe): report image_base and IAT slot VAs in static PE results

Every static PE result reports the optional-header image_base once as a hex
VA, and import rows add iat_va beside iat_rva so a slot goes straight to
xrefs. Fields name their space as rva, va or file_offset; the new fields are
optional so saved Evidence still parses, and the imports service rejects an
iat_va that disagrees with image_base plus iat_rva.

* fix(pe): document iat_va for rebased databases and test VA rejection

iat_va is relative to the file's ImageBase; a rebased provider database
needs its own base plus iat_rva. Cover the service rejection of a slot VA
that disagrees with image_base plus iat_rva.

* chore(pe): register the forwarded whole-file ceiling and shrink refusal baselines
2026-11-24 15:11:56 +00:00

142 lines
6.5 KiB
JSON

{
"src/adb/AdbCommand.ts": 1,
"src/adb/AdbConfiguration.ts": 1,
"src/android/AndroidMappingFile.ts": 2,
"src/android/JadxAnalysis.ts": 1,
"src/android/JadxFailure.ts": 2,
"src/android/JadxSession.ts": 2,
"src/apkSignature/ApkSignatureAdmission.ts": 1,
"src/apkSignature/apkSignatureFailures.ts": 3,
"src/apktool/ApktoolConfiguration.ts": 1,
"src/application/JsonAuthenticationHeadroom.ts": 2,
"src/application/JsonInputFile.ts": 3,
"src/application/Utf8JsonInput.ts": 1,
"src/application/apiContract/ApiContractRead.ts": 1,
"src/application/apiContract/ApiContractService.ts": 1,
"src/application/apiContract/GraphqlContractImport.ts": 1,
"src/application/binaryDiagnostics/ByteEntropyService.ts": 1,
"src/application/decompileDirectory/exportTree.ts": 1,
"src/application/desktop/DesktopBuildSolves.ts": 1,
"src/application/environment/environmentExport.ts": 1,
"src/application/environment/environmentState.ts": 1,
"src/application/environment/environmentStateAnswer.ts": 1,
"src/application/environment/environmentStateStore.ts": 2,
"src/application/environment/environmentTools.ts": 1,
"src/application/investigation/InvestigationRetention.ts": 1,
"src/application/native/NativeMatchingAdmission.ts": 1,
"src/application/ntfs/NtfsJournalService.ts": 2,
"src/application/reverse/ReverseEngineeringService.ts": 1,
"src/application/wasm/WasmArtifactService.ts": 1,
"src/artifacts/DesktopApplicationReader.ts": 1,
"src/artifacts/releaseExposure/releaseExposureFailures.ts": 2,
"src/browser/IsolatedWebBundleAnalyzer.ts": 2,
"src/browser/WebBundleAnalysisWorker.ts": 5,
"src/browser/execution/CdpRuntimeRetention.ts": 1,
"src/browser/history/CaptureFailures.ts": 1,
"src/browser/history/playwrightTrace/PlaywrightTraceDecoder.ts": 2,
"src/browser/history/playwrightTrace/TraceFailure.ts": 1,
"src/browser/history/playwrightTrace/TraceInventory.ts": 1,
"src/browser/history/playwrightTrace/TraceLines.ts": 2,
"src/browser/history/playwrightTrace/TraceStream.ts": 1,
"src/cli/cliJsonInput.ts": 2,
"src/cli/cliResultOutput.ts": 2,
"src/cli/environmentCommands.ts": 1,
"src/cli/jsonLinesOutput.ts": 1,
"src/composition/javascriptAnalysisWorkerProcess.ts": 2,
"src/config/bridgeMaxReplyBytes.ts": 1,
"src/config/bridgeMaxRequestBytes.ts": 3,
"src/config/capturePacketJsonExpansion.ts": 1,
"src/cutter/CutterBridgeClient.ts": 1,
"src/desktop/AgentEnvComputer.ts": 1,
"src/desktop/BuildComputerController.ts": 2,
"src/domain/analysisView/WebNetworkProjectionAccumulator.ts": 1,
"src/domain/analysisView/androidJniView.ts": 1,
"src/domain/analysisView/androidPackageView.ts": 1,
"src/domain/analysisView/androidSymbolView.ts": 1,
"src/domain/analysisView/gpuCodeObjectsView.ts": 2,
"src/domain/analysisView/javascriptRoutesView.ts": 1,
"src/domain/analysisView/nativeFunctionMatchingView.ts": 1,
"src/domain/analysisView/nativeInstructionReferencesView.ts": 1,
"src/domain/analysisView/nativeProcedureReferencesView.ts": 1,
"src/domain/analysisView/recordedArrayView.ts": 2,
"src/domain/analysisView/webBundleView.ts": 1,
"src/domain/analysisView/webSourceLocationView.ts": 1,
"src/domain/apiContract/GraphqlDocuments.ts": 2,
"src/domain/apiContract/GraphqlInventory.ts": 1,
"src/domain/apiContract/parseApiContract.ts": 1,
"src/domain/apiContract/parseGraphqlContract.ts": 1,
"src/domain/explicitSensitiveFailure.ts": 1,
"src/domain/javascript/javascriptSemanticWorkAllowance.ts": 1,
"src/domain/native/nativeAotPe.ts": 1,
"src/domain/pngVisualDiff.ts": 1,
"src/domain/wasm/wasmInterfaceBudget.ts": 1,
"src/dotnet/ManagedSnapshot.ts": 1,
"src/erlang/BeamProvider.ts": 1,
"src/evm/EvmoleFailures.ts": 3,
"src/firmware/FirmwareFailures.ts": 1,
"src/firmware/FirmwareFiles.ts": 2,
"src/firmware/devicetree/DevicetreeProvider.ts": 1,
"src/flutter/FlutterBuildProvider.ts": 12,
"src/ghidra/GhidraExecutableHeader.ts": 1,
"src/ghidra/GhidraFileArtifacts.ts": 1,
"src/ghidra/GhidraInstallationProperties.ts": 1,
"src/ghidra/GhidraSessionErrorProjection.ts": 4,
"src/go/GoBinaryProvider.ts": 2,
"src/gpu/GpuCodeObjectsProvider.ts": 2,
"src/hopper/HopperCallerReconciliation.ts": 1,
"src/ida/IdaMcpConnection.ts": 1,
"src/il2cpp/Il2cppGhidraSeedWriter.ts": 1,
"src/il2cpp/Il2cppGhidraSeeds.ts": 1,
"src/il2cpp/Il2cppMetadataProvider.ts": 3,
"src/javascript/analysis/JavaScriptAnalysisTransfer.ts": 1,
"src/javascript/analysis/JavaScriptAnalysisWorker.ts": 10,
"src/javascript/analysis/JavaScriptAnalysisWorkerServer.ts": 1,
"src/javascript/recovery/RecoveryFiles.ts": 1,
"src/javascript/sourceMaps/SourceMapCommand.ts": 1,
"src/jeb/JebProvider.ts": 1,
"src/kuna/KunaCommand.ts": 1,
"src/kuna/KunaJsonStream.ts": 1,
"src/kuna/KunaProjectCache.ts": 1,
"src/kuna/KunaProjectReader.ts": 1,
"src/kuna/KunaReferenceQueries.ts": 1,
"src/kuna/KunaSessionClient.ts": 1,
"src/main/StdioStartupInput.ts": 1,
"src/model/ModelArtifactProvider.ts": 2,
"src/native/AppleDispatchMetadata.ts": 1,
"src/native/LldbCallTracer.ts": 1,
"src/native/NativeCommandAnalysisError.ts": 1,
"src/native/NativePlistSource.ts": 2,
"src/native/SignatureTargetBinding.ts": 1,
"src/native/apple/AppleIpsProvider.ts": 1,
"src/native/elf/ElfUnwindRangesProvider.ts": 1,
"src/native/elf/KernelBuildConfigProvider.ts": 1,
"src/native/elf/KernelModuleProvider.ts": 1,
"src/native/initializers/NativeInitializersProvider.ts": 1,
"src/native/parsers/lipo.ts": 1,
"src/native/pe/PeCertificatesProvider.ts": 2,
"src/native/pe/PeResourcesProvider.ts": 1,
"src/native/pwntools/PwntoolsDecoder.ts": 1,
"src/native/pwntools/PwntoolsFailures.ts": 2,
"src/native/windows/WindowsShortcutProvider.ts": 1,
"src/pcap/PcapOutput.ts": 3,
"src/pcap/PcapSnapshot.ts": 1,
"src/process/ArtifactAnalysisResources.ts": 2,
"src/process/RegexMatcher.ts": 2,
"src/process/capture/ProcessNormalization.ts": 1,
"src/process/capture/ProcessSensitiveOutput.ts": 1,
"src/process/classifyProviderOutcome.ts": 6,
"src/process/ownedDebuggerSession.ts": 1,
"src/process/privateWorkspaceFailure.ts": 1,
"src/python/PythonPycProvider.ts": 1,
"src/resources/artifactReadBudget.ts": 2,
"src/rust/RustBinaryProvider.ts": 2,
"src/server/ErrorEvidenceTransport.ts": 2,
"src/server/ProgressiveToolCatalog.ts": 1,
"src/server/ToolResultDelivery.ts": 2,
"src/sqlite/SqliteDatabaseProvider.ts": 1,
"src/sqlite/SqliteDatabaseSnapshot.ts": 1,
"src/sqlite/SqliteDatabaseWorkerExecution.ts": 3,
"src/v8/V8CodeCacheProvider.ts": 1,
"src/wasm/WabtFailures.ts": 2
}