Fix assert in ntoskrnl

This commit is contained in:
pancake 2018-11-23 00:45:29 +01:00
parent c9a4142abb
commit 24ae15c8bb
2 changed files with 5 additions and 2 deletions

View File

@ -88,9 +88,12 @@ R_API int r_anal_esil_fire_interrupt(RAnalEsil *esil, ut32 intr_num) {
return false;
}
RAnalEsilInterrupt *intr = _get_interrupt (esil, intr_num);
#if 0
// we dont want this warning
if (!intr) {
eprintf ("no handler registered for 0x%x\n", intr_num);
eprintf ("Warning no interrupt handler registered for 0x%x\n", intr_num);
}
#endif
return (intr && intr->handler && intr->handler->cb) ?
intr->handler->cb (esil, intr_num, intr->user) : false;
}

View File

@ -1899,7 +1899,7 @@ R_API int r_anal_fcn_add_bb(RAnal *anal, RAnalFunction *fcn, ut64 addr, ut64 siz
R_API int r_anal_fcn_split_bb(RAnal *anal, RAnalFunction *fcn, RAnalBlock *bbi, ut64 addr) {
RAnalBlock *bb;
int new_bbi_instr, i;
r_return_val_if_fail (bbi && addr >= bbi->addr && addr < bbi->addr + bbi->size, 0);
r_return_val_if_fail (bbi && addr >= bbi->addr && addr < bbi->addr + bbi->size + 1, 0);
if (addr == UT64_MAX) {
return 0;
}