test(go): assert unresolved MZ candidate boundary

This commit is contained in:
morluto committed 2026-10-23 18:07:45 +08:00
1 parent ea579ebfae
commit ce48f43550
1 file changed
+3 -1
+3 -1
View File
@@ -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", () => {