GCC's -fsanitize=signed-integer-overflow doesn't catch "uint16_t x = 65535; x *= x;", whereas Clang's does. Yay. @johnregehr
@CopperheadOS @johnregehr probably because the overflow is in the assignment, not the multiplication?
-
-
so this isn't UB, just an implementation-defined truncation from int to short
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.