Skip to content

Commit eb7de14

Browse files
committed
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.
1 parent ad42213 commit eb7de14

8 files changed

Lines changed: 486 additions & 397 deletions

File tree

‎.env‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AUTH_API_KEY=""

‎.gitignore‎

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
# Build output directories
2-
/build
3-
/build*
4-
/bazel*
5-
6-
# clangd
7-
.cache
8-
9-
# The downloaded corpora files for benchmark.
10-
/third_party/corpora
11-
12-
# hdrvdp source code
13-
third_party/hdrvdp-2.2.2
14-
third_party/hdrvdp-2.2.2.zip
15-
third_party/hdrvdp-2.2.2.zip.tmp
16-
17-
# Output plots
18-
tools/benchmark/metrics/plots
19-
tools/benchmark/metrics/results.csv
20-
tools/conformance/__pycache__
21-
22-
# Editor configuration
23-
*.code-workspace
1+
# Build output directories
2+
/build
3+
/build*
4+
/bazel*
5+
6+
# clangd
7+
.cache
8+
9+
# The downloaded corpora files for benchmark.
10+
/third_party/corpora
11+
12+
# hdrvdp source code
13+
third_party/hdrvdp-2.2.2
14+
third_party/hdrvdp-2.2.2.zip
15+
third_party/hdrvdp-2.2.2.zip.tmp
16+
17+
# Output plots
18+
tools/benchmark/metrics/plots
19+
tools/benchmark/metrics/results.csv
20+
tools/conformance/__pycache__
21+
22+
# Editor configuration
23+
*.code-workspace
24+
config.bat
25+
node_modules

‎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)