Commit 77375de4 authored by Christophe Fergeau's avatar Christophe Fergeau

ci: Add check using AddressSanitizer

hex_dump in git master currently has a 1 byte buffer overflow which
valgrind is not able to catch, but asan detects it.
Signed-off-by: 's avatarChristophe Fergeau <cfergeau@redhat.com>
parent 87eac723
......@@ -2,7 +2,7 @@ image: fedora:latest
before_script:
- dnf update -y
- dnf install -y gcc automake libtool make pkgconfig autoconf-archive nss-devel glib2-devel opensc gnutls-utils nss-tools openssl softhsm lcov valgrind
- dnf install -y gcc automake libtool make pkgconfig autoconf-archive nss-devel glib2-devel opensc gnutls-utils nss-tools openssl softhsm lcov valgrind libasan
Build:
stage: build
......@@ -30,6 +30,13 @@ Memcheck:
- make memcheck-local
allow_failure: true
asan:
stage: test
script:
- ./autogen.sh
- make CFLAGS="-fsanitize=address" check
allow_failure: true
pages:
stage: deploy
dependencies:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment