fix(verifiers): expect the session-continuation regex overflow reason (#7045)

overflow into the remediation and ended the reason with the session
continuation sentence, but the real-Ghidra boundary check still required
the old reason text, so every lane that runs verifyGhidraBoundaries failed
on real Ghidra.
This commit is contained in:
Syed Rishad
2026-10-24 18:34:11 -04:00
committed by GitHub
parent aba487eec0
commit 6bcd243ca4
+3 -1
View File
@@ -529,9 +529,11 @@ export async function verifyGhidraBoundaries(
regexError.remediation.action,
/literal mode or simplify the regex/u,
);
// The retry advice lives in the remediation; the reason states that the
// session survived the overflow.
assert.match(
regexError.details.reason,
/exhausted its stack.*Use literal mode/u,
/exhausted its stack.*session and annotations remain available/u,
);
rejectedCalls++;
const nestedPattern = "(".repeat(12000) + "a" + ")".repeat(12000);