]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ci: add a memory sanitiser test run
authorPauli <pauli@openssl.org>
Tue, 29 Jun 2021 23:25:40 +0000 (09:25 +1000)
committerPauli <pauli@openssl.org>
Thu, 1 Jul 2021 03:18:58 +0000 (13:18 +1000)
This omission noted in #15950

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15952)

.github/workflows/ci.yml

index a34ab933c0981e3f40d585d02cfdd1d030316cb9..5ff0750681c5cff7a78a37206f572a52d6c99964 100644 (file)
@@ -125,7 +125,7 @@ jobs:
     - name: make test
       run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0 TESTS="-test_fuzz* -test_ssl_* -test_evp -test_cmp_http -test_verify -test_cms -test_store -test_enc -[01][0-9]"
 
-  sanitizers:
+  address_ub_sanitizer:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v2
@@ -136,6 +136,18 @@ jobs:
     - name: make test
       run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0
 
+  memory_sanitizer:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: config
+      # --debug -O1 is to produce a debug build that runs in a reasonable amount of time
+      run: CC=clang ./config --banner=Configured --debug -O1 -fsanitize=memory -DOSSL_SANITIZE_MEMORY -fno-optimize-sibling-calls enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-fips && perl configdata.pm --dump
+    - name: make
+      run: make -s -j4
+    - name: make test
+      run: make test HARNESS_JOBS=${HARNESS_JOBS:-4} OPENSSL_TEST_RAND_ORDER=0
+
   threads_sanitizer:
     runs-on: ubuntu-latest
     steps: