Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ubsan: Fix pointer overflow error message
In __ubsan_handle_pointer_overflow(), fix the condition for determining whether a pointer operation overflowed or underflowed. Currently, the function reports "underflowed" when it should be reporting "overflowed" and vice versa. Example of incorrect error reporting: void *foo = (void *)__UINTPTR_MAX__; foo += 1; UBSAN: pointer operation underflowed ffffffff to 00000000 Fixes: 4e3fb2f ("ubsan: add clang 5.0 support") Signed-off-by: Michal Orzel <[email protected]> Acked-by: Andrew Cooper <[email protected]>
- Loading branch information