Skip to content

Commit

Permalink
[MSan] updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mxaddict committed Feb 19, 2024
1 parent 6067ba9 commit 52332a2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
1 change: 1 addition & 0 deletions ci/test/03_test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set -ex

export ASAN_OPTIONS="detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1"
export LSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/lsan"
export MSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/msan"
export TSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/tsan:halt_on_error=1:log_path=${BASE_SCRATCH_DIR}/sanitizer-output/tsan"
export UBSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1"

Expand Down
11 changes: 1 addition & 10 deletions src/blsct/arith/mcl/mcl_init.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,7 @@ class MclInit
static bool is_initialized = false;
if (is_initialized) return;

#ifndef MCLBN_COMPILED_TIME_VAR
int compiledTimeVar = 0;
#else
int compiledTimeVar = MCLBN_COMPILED_TIME_VAR;
#endif

if (blsInit(
MCL_BLS12_381,
compiledTimeVar
) != 0) {
if (blsInit(MCL_BLS12_381, MCLBN_COMPILED_TIME_VAR) != 0) {
throw std::runtime_error("blsInit failed");
}
mclBn_setETHserialization(1);
Expand Down
1 change: 0 additions & 1 deletion test/sanitizer_suppressions/msan
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[memory]
# false-positive in mcl
fun:*mcl*

0 comments on commit 52332a2

Please sign in to comment.