3 ms·
Unsigned integer overflow is not undefined behavior in C++ so won't be caught by UBSan. Also, UBSan is more overhead than turning on Rust's overflow checking.
by roca 4y ago
Unsigned integer overflow is not undefined behavior in C++ so won't be caught by UBSan.
Also, UBSan is more overhead than turning on Rust's overflow checking.