Skip to content

Commit b67defe

Browse files
Fix suppressions
1 parent 00c6488 commit b67defe

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/reusable-san.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
|| ''
6262
}}.txt handle_segv=0" >> "$GITHUB_ENV"
6363
else
64-
echo "UBSAN_OPTIONS=${SAN_LOG_OPTION} suppressions=${GITHUB_WORKSPACE}/Tools/ubsan/suppressions.txt" >> "$GITHUB_ENV"
64+
echo "UBSAN_OPTIONS=${SAN_LOG_OPTION} halt_on_error=1 suppressions=${GITHUB_WORKSPACE}/Tools/ubsan/suppressions.txt" >> "$GITHUB_ENV"
6565
fi
6666
echo "CC=clang" >> "$GITHUB_ENV"
6767
echo "CXX=clang++" >> "$GITHUB_ENV"
@@ -85,7 +85,6 @@ jobs:
8585
run: make pythoninfo
8686
- name: Tests
8787
run: >-
88-
UBSAN_OPTIONS="${UBSAN_OPTIONS} halt_on_error=1"
8988
./python -m test
9089
${{ inputs.sanitizer == 'TSan' && '--tsan' || '' }}
9190
${{ inputs.sanitizer == 'UBSan' && '-x test_capi' || '' }}

Tools/ubsan/suppressions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ null:Objects/object.c
88
bool:Objects/memoryobject.c
99

1010
# Modules/binascii.c:1243:42: runtime error: left shift of 128 by 24 places cannot be represented in type 'int'
11-
shift:Modules/binascii.c
11+
shift-base:Modules/binascii.c
1212

1313
# Modules/_ctypes/cfield.c:644:1: runtime error: left shift of 1 by 63 places cannot be represented in type 'int64_t' (aka 'long')
14-
shift:Modules/_ctypes/cfield.c
14+
shift-base:Modules/_ctypes/cfield.c
1515

1616
# Modules/_zstd/decompressor.c:598:56: runtime error: applying non-zero offset 18446744073709551615 to null pointer
1717
pointer-overflow:Modules/_zstd/decompressor.c

0 commit comments

Comments
 (0)