From fbd437b4a9954fb513b8d5987b35d09b4df51ff4 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Mon, 3 Jun 2019 14:30:56 +0200 Subject: [PATCH] Add Travis test with MemorySanitizer --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8d10d234..e3bf009a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,11 @@ matrix: env: CONFIG="--without-python" CFLAGS="-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=all -Werror -Wno-error=cast-align" UBSAN_OPTIONS=print_stacktrace=1 + # clang with MemorySanitizer. + - compiler: clang + dist: xenial + env: CONFIG="--without-python --without-zlib --without-lzma --without-crypto" + CFLAGS="-O2 -g -fno-omit-frame-pointer -fsanitize=memory -Werror -Wno-error=cast-align" script: - | git clone --depth 1 https://gitlab.gnome.org/GNOME/libxml2.git