2
0
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:
Alexander Grund
2021-04-11 16:13:06 +02:00
parent 0db4b799bc
commit ff08dabdf6
2 changed files with 6 additions and 2 deletions

View File

@@ -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
View File

@@ -0,0 +1,3 @@
[undefined]
# libcxx invokes UB when swapping a closed filebuf
fun:_ZNSt3__113basic_filebufIcNS_11char_traitsIcEEE4swapERS3_