From 85674a4bc02f95c88f5cea683fa1bc4aa0294e5b Mon Sep 17 00:00:00 2001 From: chayleaf Date: Fri, 11 Aug 2023 15:40:02 +0700 Subject: [PATCH] Fix esil string being directly passed to printf (no "%s") (#327) --- src/analysis_ghidra.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis_ghidra.cpp b/src/analysis_ghidra.cpp index 59b21b09..2016e85f 100644 --- a/src/analysis_ghidra.cpp +++ b/src/analysis_ghidra.cpp @@ -1364,7 +1364,7 @@ static void sleigh_esil(RzAnalysis *a, RzAnalysisOp *analysis_op, ut64 addr, con if(!esil_stack.empty()) ss << ",CLEAR"; // std::cerr << hex << analysis_op->addr << " " << ss.str() << endl; - esilprintf(analysis_op, ss.str()[0] == ','? ss.str().c_str() + 1: ss.str().c_str()); + esilprintf(analysis_op, "%s", ss.str()[0] == ','? ss.str().c_str() + 1: ss.str().c_str()); } /* Not in use for now.