-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Expand file tree
/
Copy pathubsan_suppressions_x86_64.txt
More file actions
28 lines (22 loc) · 1.25 KB
/
ubsan_suppressions_x86_64.txt
File metadata and controls
28 lines (22 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This file contains suppressions for the default (with GIL) build to prevent runtime errors
# when numpy is built with -Db_sanitize=undefined for x86_64 architecture
#
# reference: https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#available-checks
# Per this prior discussion, integer overflow is not a concern
# https://github.com/numpy/numpy/issues/24209#issuecomment-2160154181
signed-integer-overflow:*
# all alignment runtime errors ignored in favor of this being tracked via TypeSanitizer
# otherwise ubsan may detect system file alignment errors outside numpy
alignment:*
# suggested fix for runtime error: use INT_MIN constant
shift-base:_core/src/umath/_rational_tests.c
# suggested fix for runtime error: check for overflow if signed
shift-base:_core/src/npymath/npy_math_internal.h
# suggested fix for runtime error: check that pointer is not null before calling function
nonnull-attribute:_core/src/multiarray/array_coercion.c
nonnull-attribute:_core/src/multiarray/ctors.c
nonnull-attribute:_core/src/multiarray/datetime_busdaycal.c
nonnull-attribute:_core/src/multiarray/scalarapi.c
nonnull-attribute:_core/src/multiarray/calculation.c
# suggested fix for runtime error: null check before loop
pointer-overflow:_core/src/multiarray/nditer_templ.c