fix(ghidra): encode Java probe output as UTF-8 (#2206)

* fix(ghidra): encode Java probe output as UTF-8

* fix(ghidra): preserve Unicode Java homes across supported JDKs

* test(ghidra): verify snapshot rejection without matching prose

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
Ha1baraA1
2026-10-13 00:45:23 +08:00
committed by GitHub
co-authored by morluto
parent 8e004522f2
commit 59be866719
7 changed files with 102 additions and 15 deletions
@@ -374,9 +374,7 @@ describe("evidence metadata imports and snapshot cache", () => {
expect(session.exportAnalysisSnapshot()).toMatchObject({
ok: false,
error: {
message: expect.stringContaining(
"Analysis snapshots are unavailable because analysis metadata may have changed",
),
_tag: "EvidenceIntegrityError",
},
});
expect((await session.open(target)).ok).toBe(true);
@@ -384,9 +382,7 @@ describe("evidence metadata imports and snapshot cache", () => {
expect(session.importAnalysisSnapshot(baseline.value)).toMatchObject({
ok: false,
error: {
userMessage: expect.stringContaining(
"Close the active target without saving a snapshot",
),
_tag: "EvidenceIntegrityError",
},
});
expect(session.exportEvidenceBundle().records).toContainEqual(relocated);