mirror of
https://github.com/boostorg/nowide.git
synced 2026-01-19 04:22:12 +00:00
Suppress UB failure in libc++ filebuf::swap
This triggers UB when filebuf is closed See https://bugs.llvm.org/show_bug.cgi?id=49923
This commit is contained in:
5
.github/workflows/posix.yml
vendored
5
.github/workflows/posix.yml
vendored
@@ -59,7 +59,8 @@ jobs:
|
||||
|
||||
- name: Setup config vars
|
||||
run: |
|
||||
echo "LIBRARY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
|
||||
LIBRARY=${GITHUB_REPOSITORY#*/}
|
||||
echo "LIBRARY=$LIBRARY" >> $GITHUB_ENV
|
||||
echo "B2_COMPILER=${{matrix.compiler}}" >> $GITHUB_ENV
|
||||
${{matrix.compiler}} --version
|
||||
if [[ "${{matrix.compiler}}" =~ clang ]]; then
|
||||
@@ -75,7 +76,7 @@ jobs:
|
||||
echo "B2_CXXSTD=${{matrix.cxxstd}}" >> $GITHUB_ENV
|
||||
if [[ "${{matrix.sanitize}}" == "yes" ]]; then
|
||||
echo "B2_ASAN=address-sanitizer=norecover" >> $GITHUB_ENV
|
||||
echo "B2_UBSAN=undefined-sanitizer=norecover" >> $GITHUB_ENV
|
||||
echo "B2_UBSAN=undefined-sanitizer=norecover cxxflags=-fsanitize-blacklist=libs/$LIBRARY/ubsan-blacklist" >> $GITHUB_ENV
|
||||
fi
|
||||
[[ "${{matrix.linkflags}}" == "" ]] || echo "B2_LINKFLAGS=linkflags=${{matrix.linkflags}}" >> $GITHUB_ENV
|
||||
|
||||
|
||||
3
ubsan-blacklist
Normal file
3
ubsan-blacklist
Normal file
@@ -0,0 +1,3 @@
|
||||
[undefined]
|
||||
# libcxx invokes UB when swapping a closed filebuf
|
||||
fun:_ZNSt3__113basic_filebufIcNS_11char_traitsIcEEE4swapERS3_
|
||||
Reference in New Issue
Block a user