GHA: add a memory-sanitizer job

Closes #10815
This commit is contained in:
Daniel Stenberg 2023-03-22 13:39:05 +01:00
parent 6366a6f80f
commit d03c4dc165
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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'