fwsGonzo / libriscv

The fastest RISC-V sandbox
BSD 3-Clause "New" or "Revised" License
526 stars 46 forks source link

UBsan dispatch only for fuzzing and sanitizer mode #128

Closed fwsGonzo closed 1 month ago

fwsGonzo commented 5 months ago

Sanitizers and fuzzers should enable the fuzzing mode. Without the fuzzing mode we can assume that the UBsan minimal run-time is used, and we don't want to enable it for dispatch, as it hampers the emulator too much. Thus, disable UBsan for dispatch when not sanitizing.

There is afaik no way to detect UBsan minimal run-time.