Skip to content

Commit

Permalink
Restrict switch statement boundaries in Java analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 5, 2015
1 parent 0f5a2cc commit f137c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/anal/p/anal_java.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ static int java_switch_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data,
}
pos += 12;

if (max_val > min_val) {
if (max_val > min_val && ((max_val-min_val)<(UT16_MAX/4))) {
//caseop = r_anal_switch_op_add_case(op->switch_op, addr+default_loc, -1, addr+offset);
for (cur_case = 0; cur_case <= max_val - min_val; pos+=4, cur_case++) {
//ut32 value = (ut32)(UINT (data, pos));
Expand Down

0 comments on commit f137c8e

Please sign in to comment.