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:
@@ -64,6 +64,7 @@ export const SCOPES = {
|
||||
"tests/boundary/filesystem/javascript-applications/javascriptArtifactReconstruction.test.ts",
|
||||
"tests/conformance/providers/ghidra/windowsCapabilities.test.ts",
|
||||
"src/ghidra/GhidraInstallation.test.ts",
|
||||
"tests/boundary/filesystem/ghidraJavaProbe.test.ts",
|
||||
"tests/boundary/providers/ghidra/ghidraTransport.test.ts",
|
||||
"tests/boundary/providers/ghidra/ghidraTargetSnapshot.test.ts",
|
||||
"tests/boundary/providers/ghidra/ghidraLauncher.test.ts",
|
||||
|
||||
@@ -36,16 +36,11 @@ export async function verifyGhidraSnapshotLifecycle(
|
||||
);
|
||||
const error = requireMcpToolError(reply);
|
||||
assert.equal(
|
||||
error?.code,
|
||||
error.code,
|
||||
"evidence_integrity_mismatch",
|
||||
JSON.stringify(reply),
|
||||
);
|
||||
assert.match(error.message, /after analysis metadata mutations/u);
|
||||
assert.match(
|
||||
error.remediation.action,
|
||||
/close.*without saving a snapshot/iu,
|
||||
);
|
||||
assert.match(error.remediation.action, /export_evidence_bundle/u);
|
||||
assert.equal(error.retryable, false);
|
||||
rejectedCalls++;
|
||||
};
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user