Fix many zero cases in some jump table analysis ##anal

This commit is contained in:
pancake 2021-05-27 12:58:44 +02:00 committed by pancake
parent ca261127fa
commit 207e6f91b1

View File

@ -19,7 +19,8 @@ static void apply_case(RAnal *anal, RAnalBlock *block, ut64 switch_addr, ut64 of
}
if (anal->flb.set) {
char flagname[0x30];
snprintf (flagname, sizeof (flagname), "case.0x%"PFMT64x ".%d", (ut64)switch_addr, (int)id);
int iid = R_ABS((int)id);
snprintf (flagname, sizeof (flagname), "case.0x%"PFMT64x ".%d", (ut64)switch_addr, iid);
anal->flb.set (anal->flb.f, flagname, case_addr, 1);
}
}