[gnutls-devel] GnuTLS | UBSAN: Fail tests if UB detected (!1136)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Dec 19 13:32:25 CET 2019

Tim Rühsen commented on a discussion on .gitlab-ci.yml: https://gitlab.com/gnutls/gnutls/merge_requests/1136#note_263079179

>    stage: stage1-testing
>    script:
> +  - dnf install -y llvm
>    - ./bootstrap
> -  - CFLAGS="-std=c99 -fsanitize=undefined -fsanitize=bool -fsanitize=alignment -fsanitize=null -fsanitize=bounds-strict -fsanitize=enum -fno-sanitize-recover -g -O2" CXXFLAGS=$CFLAGS LDFLAGS="-static-libubsan" dash ./configure

We now have two combined sanitizer runners, one for clang the other one for gcc.

Both runners check asan, ubsan, leak, ..., use `-std=c99` and `-Werror`.

There are still two sets of annoying warnings, `-Wno-enum-conversion` and `-Wno-parentheses`. The first one can possibly addressed by explicit casts. The second one comes from sloppy programming in autogen. If nobody sends a patch upstream, we might sit on this forever.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1136#note_263079179
You're receiving this email because of your account on gitlab.com.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20191219/175ffbc7/attachment.html>

More information about the Gnutls-devel mailing list