Reverse engineer anything with agents, from app behavior down to native binaries.
TypeScript agent-skillsai-agentsbinary-analysisclaude-codeclicodexcordisdecompilerdeveloper-toolsdshdsh-pluginghidrahopperllmmcpmodel-context-protocolreareverse-engineeringstatic-analysistouhou
fix(ghidra): keep the cross-format branch callee multi-block
GRAB Raceme10c934d5a75
diff --git a/tests/conformance/ghidra/cross-format.c b/tests/conformance/ghidra/cross-format.cindex f718b9b54..22efa6159 100644--- a/tests/conformance/ghidra/cross-format.c+++ b/tests/conformance/ghidra/cross-format.c@@ -8,10 +8,15 @@ __attribute__((noinline, used)) int rea_cross_leaf(int value) {}__attribute__((noinline, used)) int rea_cross_branch(int value) {- if (value > 10) {- return rea_cross_leaf(value);+ /* A volatile-dependent loop keeps this callee multi-block at every+ optimization level: newer clang folds a symmetric if/else of tail calls+ into a conditional negate, and cross-format verification requires a+ recovered multi-block callee. */+ int adjusted = value > 10 ? value + 1 : -value;+ while (adjusted > 100) {+ adjusted -= rea_cross_global;}- return rea_cross_leaf(-value);+ return rea_cross_leaf(adjusted);}__attribute__((noinline, used)) int rea_cross_indirect(