fix(ghidra): harden location resolution and provider lifecycle
Preserve boundary diagnostics, resolve procedure names before bare hex addresses, and launch the inspected JVM directly on macOS for verifiable startup cancellation. Keep private socket paths within host limits and retain ownership when cleanup is incomplete. Exercise the fixes through real CLI/MCP Ghidra workflows and provider-boundary integration tests, replacing redundant unit coverage.
This commit is contained in:
@@ -255,7 +255,7 @@ export async function assertSession(
|
||||
session.provider.version !== SUPPORTED_GHIDRA_VERSION ||
|
||||
session.profile_digest !== expectedDigest ||
|
||||
session.target.sha256 !== expectedTargetSha256 ||
|
||||
session.read_only !== true ||
|
||||
session.read_only !== false ||
|
||||
session.analysis_complete !== true ||
|
||||
session.analysis_timed_out !== false ||
|
||||
session.capabilities.length !== GHIDRA_SESSION_CAPABILITIES.length ||
|
||||
@@ -279,7 +279,12 @@ export function assertRuntimeCoordinates(coordinates) {
|
||||
}
|
||||
|
||||
export async function assertCleanup(coordinates) {
|
||||
for (const name of ["runtime_root", "endpoint_path", "project_root"]) {
|
||||
for (const name of [
|
||||
"runtime_root",
|
||||
"endpoint_path",
|
||||
"project_root",
|
||||
"socket_root",
|
||||
]) {
|
||||
const path = coordinates[name];
|
||||
if (typeof path === "string" && (await exists(path)))
|
||||
throw new Error(`Ghidra cleanup left ${name}: ${path}`);
|
||||
|
||||
Reference in New Issue
Block a user