Skip to content

Commit

Permalink
Suppress santizer error about undefined behavior in Bliss.
Browse files Browse the repository at this point in the history
This could be an error on our end since it looks like memory corruption,
however for now we'll suppress it since it's in external code.
  • Loading branch information
insertinterestingnamehere committed Jun 12, 2020
1 parent 5429f49 commit c994ed8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/Modules/HandleSanitizer.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ if (GALOIS_USE_SANITIZE_COVERAGE)
endif()

if (GALOIS_USE_SANITIZER MATCHES ".*Undefined.*")
set(BLACKLIST_FILE "${CMAKE_SOURCE_DIR}/config/sanitizers/ubsan_blacklist.txt")
if (EXISTS "${BLACKLIST_FILE}")
set(BLACKLIST_CONFIGURE_FILE "${PROJECT_SOURCE_DIR}/config/sanitizers/ubsan_blacklist.txt.in")
if (EXISTS "${BLACKLIST_CONFIGURE_FILE}")
set(BLACKLIST_FILE "${PROJECT_BINARY_DIR}/config/sanitizers/ubsan_blacklist.txt")
configure_file("${BLACKLIST_CONFIGURE_FILE}" "${BLACKLIST_FILE}")
append("-fsanitize-blacklist=${BLACKLIST_FILE}"
CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
endif()
Expand Down
2 changes: 2 additions & 0 deletions config/sanitizers/ubsan_blacklist.txt.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[undefined]
src:@PROJECT_SOURCE_DIR@/external/bliss/*

0 comments on commit c994ed8

Please sign in to comment.