mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-07 13:51:16 +00:00
Fix assert in ntoskrnl
This commit is contained in:
parent
c9a4142abb
commit
24ae15c8bb
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user