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:
@@ -49,13 +49,17 @@ const createGhidraSessionError = (failure: {
|
||||
new GhidraSessionError(
|
||||
failure.kind,
|
||||
failure.message,
|
||||
failure.remoteCode === undefined
|
||||
? failure.diagnostics
|
||||
: {
|
||||
...failure.diagnostics,
|
||||
remote_code: failure.redact(failure.remoteCode),
|
||||
remote_message: failure.message,
|
||||
},
|
||||
{
|
||||
...failure.diagnostics,
|
||||
failure_kind: failure.kind,
|
||||
failure_message: failure.message,
|
||||
...(failure.remoteCode === undefined
|
||||
? {}
|
||||
: {
|
||||
remote_code: failure.redact(failure.remoteCode),
|
||||
remote_message: failure.message,
|
||||
}),
|
||||
},
|
||||
{
|
||||
...(failure.cause === undefined ? {} : { cause: failure.cause }),
|
||||
...(failure.timeoutMs === undefined
|
||||
|
||||
Reference in New Issue
Block a user