File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
harness/fuzzware_harness/native/core_peripherals Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -937,10 +937,13 @@ void ExceptionReturn(uc_engine *uc, uint32_t ret_pc) {
937
937
938
938
PopStack (uc );
939
939
940
- nvic_assert (
941
- (((ret_pc & NVIC_INTERRUPT_ENTRY_LR_THREADMODE_FLAG ) != 0 ) == (nvic .active_irq == NVIC_NONE_ACTIVE )),
942
- "[ExceptionReturn] expected thread mode return to end up with nvic.active_irq == NVIC_NONE_ACTIVE and vice versa."
943
- );
940
+ if (((ret_pc & NVIC_INTERRUPT_ENTRY_LR_THREADMODE_FLAG ) != 0 ) != (nvic .active_irq == NVIC_NONE_ACTIVE )) {
941
+ if (do_print_exit_info ) {
942
+ puts ("[ExceptionReturn] expected thread mode return to end up with nvic.active_irq == NVIC_NONE_ACTIVE and vice versa." );
943
+ fflush (stdout );
944
+ }
945
+ force_crash (uc , UC_ERR_FETCH_PROT );
946
+ }
944
947
}
945
948
946
949
// idea: just hook code for the magic is_exception_ret address range
You can’t perform that action at this time.
0 commit comments