Merge pull request #6815 from ethereum/add-asan-runtime-flags-to-asan-ci

Adds ASan runtime flags to enable additional security checks
This commit is contained in:
chriseth 2019-05-22 13:42:46 +02:00 committed by GitHub
commit b44e1df87b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,6 +357,7 @@ jobs:
ulimit -a
# Increase stack size because ASan makes stack frames bigger and that breaks our assumptions (in tests).
ulimit -s 16384
export ASAN_OPTIONS="check_initialization_order=1:detect_stack_use_after_return=1:strict_init_order=1:strict_string_checks=1:detect_invalid_pointer_pairs=1"
build/test/soltest --logger=JUNIT,test_suite,test_results/result.xml -- --no-ipc --testpath test
- run:
name: Run commandline tests with ASAN
@ -364,6 +365,7 @@ jobs:
ulimit -a
# Increase stack size because ASan makes stack frames bigger and that breaks our assumptions (in tests).
ulimit -s 16384
export ASAN_OPTIONS="check_initialization_order=1:detect_stack_use_after_return=1:strict_init_order=1:strict_string_checks=1:detect_invalid_pointer_pairs=1"
test/cmdlineTests.sh
- store_test_results:
path: test_results/