| 1 |
# This file contains suppressions for the default (with GIL) build to prevent runtime errors |
| 2 |
# when numpy is built with -Db_sanitize=undefined for arm64 architecture |
| 3 |
# |
| 4 |
# reference: https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#available-checks |
| 5 |
|
| 6 |
# Per this prior discussion, integer overflow is not a concern |
| 7 |
# https://github.com/numpy/numpy/issues/24209#issuecomment-2160154181 |
| 8 |
signed-integer-overflow:* |
| 9 |
|
| 10 |
# all alignment runtime errors ignored in favor of this being tracked via TypeSanitizer |
| 11 |
# otherwise ubsan may detect system file alignment errors outside numpy |
| 12 |
alignment:* |
| 13 |
|
| 14 |
# suggested fix for runtime error: use INT_MIN constant |
| 15 |
shift-base:_core/src/umath/_rational_tests.c |
| 16 |
# suggested fix for runtime error: check for overflow if signed |
| 17 |
shift-base:_core/src/npymath/npy_math_internal.h |
| 18 |
|
| 19 |
# suggested fix for runtime error: null check before loop |
| 20 |
pointer-overflow:_core/src/common/simd/neon/memory.h |
| 21 |
pointer-overflow:_core/src/multiarray/datetime_busdaycal.c |
| 22 |
pointer-overflow:_core/src/multiarray/nditer_templ.c |
| 23 |
pointer-overflow:_core/src/multiarray/nditer_constr.c |
| 24 |
pointer-overflow:_core/src/umath/loops_arithm_fp.dispatch.c.src |
| 25 |
pointer-overflow:_core/src/umath/loops_unary.dispatch.c.src |
| 26 |
pointer-overflow:_core/src/umath/loops_unary_complex.dispatch.c.src |
| 27 |
pointer-overflow:_core/src/umath/loops_unary_fp_le.dispatch.c.src |
| 28 |
pointer-overflow:_core/src/umath/string_buffer.h |
| 29 |
pointer-overflow:linalg/umath_linalg.cpp |
| 30 |
pointer-overflow:numpy/random/bit_generator.pyx.c |
| 31 |
|
| 32 |
float-cast-overflow:_core/src/multiarray/lowlevel_strided_loops.c.src |
| 33 |
|
| 34 |
# flagged in CI - call to function through pointer to incorrect function type |
| 35 |
# Many functions in the modules/files listed below cause undefined behavior in CI |
| 36 |
# general disable this check until further investigation, but keep the specific files |
| 37 |
# as a starting point for resolving the checks later |
| 38 |
function:_core/src/* |
| 39 |
function:numpy/random/* |
| 40 |
# function:_core/src/common/cblasfunc.c |
| 41 |
# function:_core/src/common/npy_argparse.c |
| 42 |
# function:_core/src/multiarray/number.c |
| 43 |
# function:_core/src/multiarray/ctors.c |
| 44 |
# function:_core/src/multiarray/convert_datatype.c |
| 45 |
# function:_core/src/multiarray/dtype_transfer.c |
| 46 |
# function:_core/src/multiarray/dtype_traversal.c |
| 47 |
# function:_core/src/multiarray/getset.c |
| 48 |
# function:_core/src/multiarray/scalarapi.c |
| 49 |
# function:_core/src/multiarray/scalartypes.c.src |
| 50 |
# function:_core/src/umath/* |
| 51 |
# function:numpy/random/* |