From: Daniel Stenberg Date: Wed, 22 Mar 2023 12:39:05 +0000 (+0100) Subject: GHA: add a memory-sanitizer job X-Git-Tag: curl-8_1_0~306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d03c4dc165628d74435b444bb2c2bc81668d5d32;p=thirdparty%2Fcurl.git GHA: add a memory-sanitizer job Closes #10815 --- diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d1c1c6d8ae..e752aefd3e 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -114,6 +114,16 @@ jobs: LIBS="-ldl -lubsan" --with-openssl --enable-debug --enable-websockets + - name: memory-sanitizer + install_packages: clang + install_steps: + configure: > + CC=clang + CFLAGS="-fsanitize=memory -Wformat -Werror=format-security -Werror=array-bounds -g" + LDFLAGS="-fsanitize=memory" + LIBS="-ldl" + --without-ssl --without-zlib --without-brotli --without-zstd --without-libpsl --without-nghttp2 --enable-debug --enable-websocketsx + - name: event-based install_packages: libssh-dev valgrind configure: --enable-debug --disable-shared --disable-threaded-resolver --with-libssh --with-openssl @@ -296,6 +306,9 @@ jobs: - run: make V=1 name: 'make' + - run: ./src/curl -V + name: 'check curl -V output' + - run: make V=1 examples name: 'make examples'