feat(native): admit raw binaries with caller-supplied architecture and entry (#1868)
* feat(native): admit raw binaries with caller-supplied architecture and entry * fix(native): honor raw-binary preparation and entry identity * fix(ghidra): stream raw snapshot attestation with cancellation * fix(native): preserve and validate raw lifecycle entries --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
@@ -31,6 +31,27 @@ describe("Hopper analysis profiles", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("does not map caller-supplied raw binaries onto a Hopper loader", () => {
|
||||
expect(
|
||||
hopperLoaderArgsForTarget({
|
||||
path: "/tmp/ecu.bin",
|
||||
sha256: "a".repeat(64),
|
||||
kind: "executable",
|
||||
format: "raw-binary",
|
||||
architecture: "arm",
|
||||
availableArchitectures: ["arm"],
|
||||
entryPoint: "0x8000000",
|
||||
entryPointSource: "0x8000000",
|
||||
}),
|
||||
).toMatchObject({
|
||||
ok: false,
|
||||
error: {
|
||||
_tag: "ProviderAdapterError",
|
||||
operation: "resolve_analysis_profile",
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it.each([
|
||||
[target("elf", "x86_64"), ["-l", "ELF", "--intel-64"]],
|
||||
[target("pe", "x86"), ["-l", "WinPE", "--intel-32"]],
|
||||
|
||||
Reference in New Issue
Block a user