fix(analysis): expose provider image base (#2083)

This commit is contained in:
The one -Niu
2026-10-13 06:10:21 +09:00
committed by GitHub
parent 1dd20ce1ff
commit 81cca2e0e3
6 changed files with 35 additions and 1 deletions
+14
View File
@@ -8,6 +8,7 @@ import {
parseNames,
parseProcedures,
parseRelatedAddresses,
parseSegmentImageBase,
parseSegments,
} from "./hopperValues.js";
@@ -65,6 +66,19 @@ describe("Hopper boundary values", () => {
ok: true,
value: ["fixture"],
});
expect(
parseSegmentImageBase([
{ image_base: "0x100000" },
{ image_base: "0x100000" },
]),
).toBe("0x100000");
expect(
parseSegmentImageBase([
{ image_base: "0x100000" },
{ image_base: "0x200000" },
]),
).toBeUndefined();
expect(parseSegmentImageBase([{ name: "__TEXT" }])).toBeUndefined();
});
it.each([