Pointer Overflow Checking is in LLVM
Today’s quick post is about another piece of the puzzle that very recently landed in LLVM: pointer overflow checking. At the machine level a pointer overflow looks just like an unsigned integer overflow, but of course at the language level the overflowing operation is pointer arithmetic, not unsigned integer arithmetic.
Been floating around for a while. See also: https://wdtz.org/catching-pointer-overflow-bugs.html