From 59fbaa2d33359216534407f99f49705ac04a3426 Mon Sep 17 00:00:00 2001 From: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com> Date: Fri, 9 Oct 2026 14:04:35 +0000 Subject: [PATCH] fix(ghidra): stop dereferencing the removed error payload in address verification Since #1277 an MCP tool error carries no structuredContent, so the real Ghidra address-boundary verifier threw a TypeError on its first expected rejection and never checked the remaining representations or the alias-preservation control. Assert that the error carries no structured payload instead. Co-Authored-By: Claude Opus 5.5 --- scripts/lib/real-ghidra-address-boundaries.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lib/real-ghidra-address-boundaries.mjs b/scripts/lib/real-ghidra-address-boundaries.mjs index f5b54d5f47..1fae2bbe10 100644 --- a/scripts/lib/real-ghidra-address-boundaries.mjs +++ b/scripts/lib/real-ghidra-address-boundaries.mjs @@ -47,7 +47,8 @@ export async function verifyGhidraAddressBoundaries(client, entry, cli) { const issues = JSON.stringify(error.details.issues); assert.match(issues, /cannot be represented without truncation/u); assert.ok(issues.includes(address), issues); - assert.equal(reply.structuredContent.evidence, undefined); + // A rejected request produces no Evidence; errors carry text only. + assert.equal(reply.structuredContent, undefined); } } assert.deepEqual(