Commit 4194f5a7 authored by Aleksei Vetrov's avatar Aleksei Vetrov
Browse files

ANDROID: temporary disable UBSAN_TRAP



After a Clang update, UBSAN began detecting signed integer overflow,
despite the "-fwrapv" flag which defines the behavior for this. This
detection aims to find unintentional overflows, however, there's
currently no effective mechanism to mark overflows as intentional in
certain cases.

This change disables kernel panic when UBSAN detects undefined behavior,
leaving only a warning in the kernel log. UBSAN_TRAP will be re-enabled
once all intentional undefined behavior is annotated (bug 375156207).

Bug: 354745907
Bug: 375156207
Change-Id: I64b35b8cb03be6c87910bec939039d1edc67a998
Signed-off-by: default avatarAleksei Vetrov <vvvvvv@google.com>
parent 4b54a87e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment