Skip to content

Commit dbf544f

Browse files
jreckhraj9258
authored andcommitted
Disable unsigned integer overflow sanitizer in libjxl
Disables the unsigned integer overflow sanitizer for libjxl. Upstream libjxl uses unsigned wrap-around intentionally in several places (e.g. ClampedGradient, backward loops), which triggers UBSan aborts on Android since it is enabled by default. Since unsigned overflow is defined behavior in C++, and these overflows are benign, we disable this sanitizer to avoid maintaining extensive local patches, while keeping signed overflow and other UB sanitizers enabled. Bug: 513832249 Test: atest CtsGraphicsTestCases:android.graphics.cts.ImageDecoderTest#testInterestingDngs Flag: EXEMPT BUGFIX DISABLE_TOPIC_PROTECTOR Change-Id: I5bac14ad6973b3bc7dbbf865c2159f9f233f728c
1 parent ad42213 commit dbf544f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎Android.bp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ cc_library {
2323
],
2424
sanitize: {
2525
all_undefined: true,
26-
integer_overflow: true,
2726
},
2827
// Libjxl is not CFI-enabled, so disabling LTO here is safe.
2928
lto: {

0 commit comments

Comments
 (0)