Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

test(go): assert unresolved MZ candidate boundary

morlutoce48f43550c2
diff --git a/tests/boundary/go/goBinaryImage.test.ts b/tests/boundary/go/goBinaryImage.test.ts
index c45d26f36..5df7d8244 100644
--- a/tests/boundary/go/goBinaryImage.test.ts
+++ b/tests/boundary/go/goBinaryImage.test.ts
@@ -359,7 +359,9 @@ it("distinguishes unsupported containers from malformed recognized images", () =
);
const pe = createGoBinaryFixture({ format: "pe" });
pe.bytes.writeUInt32LE(0xfffffff0, 60);
- expect(() => readGoBinaryImage(pe.bytes)).toThrowError(/range|truncated/i);
+ expect(() => readGoBinaryImage(pe.bytes)).toThrowError(
+ /MZ Windows new-header candidate is unresolved/i,
+ );
});
it("reports JVM class files as unsupported images instead of fat Mach-O containers", () => {