mirror of
https://github.com/morluto/rea
synced 2026-10-27 22:45:19 -04:00
2b5ee72d26
Admit Windows ARMNT/Thumb-2 and ARM64 PE targets using preserved COFF machine facts. Keep unsupported machine gates explicit and distinguish loader-selected versus configured language provenance. Verified with real Windows Ghidra 12.1.4 CLI/MCP workflows, ARM fixtures and Microsoft-signed Coreinfo ARM64 / MSVCR120 ARM inputs. Resource limits, analyzer overrides, startup timeout observations and verification gaps are documented in the PR. Final CI and automated review passed. Fixes #2186
18 lines
541 B
TypeScript
18 lines
541 B
TypeScript
import assert from "node:assert/strict";
|
|
import { it } from "vitest";
|
|
|
|
import { windowsGhidraFixtureOptions } from "../../../../scripts/lib/ghidra-windows-fixture-options.mjs";
|
|
|
|
it("architecture selectors cannot silently choose a different fixture", () => {
|
|
for (const arguments_ of [
|
|
["--x86", "--arm"],
|
|
["--x86", "--arm64"],
|
|
["--arm", "--arm64"],
|
|
])
|
|
assert.throws(() => windowsGhidraFixtureOptions(arguments_));
|
|
assert.equal(
|
|
windowsGhidraFixtureOptions(["D:/tmp/rea/--arm"]).architecture,
|
|
"x86_64",
|
|
);
|
|
});
|