>signed integer overflow being UB would count for C/C++
Then, I raise you to Zig which has unsigned integer overflow being UB.
Then, I raise you to Zig which has unsigned integer overflow being UB.
Anyway that's a long way of saying that you're right, integer overflow is illegal behavior, I just think it's interesting.
https://doc.rust-lang.org/std/intrinsics/fn.unchecked_add.ht...