test(go): assert unresolved MZ candidate boundary
This commit is contained in:
1 parent
ea579ebfae
commit
ce48f43550
1 file changed
+3
-1
@@ -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", () => {
|
||||
|
||||
Reference in new issue
Block a user