Skip to content

Commit

Permalink
Fix esil string being directly passed to printf (no "%s") (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
chayleaf authored Aug 11, 2023
1 parent f903624 commit 85674a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis_ghidra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 85674a4

Please sign in to comment.