CI: add libgcrypt to sanitizer run
authorKirill Isakov <bootctl@gmail.com>
Wed, 20 Apr 2022 10:29:23 +0000 (16:29 +0600)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 22 Apr 2022 20:22:18 +0000 (22:22 +0200)
commitefca41606d4083eade90047d57cb963eb3b7e731
treed4008bf7ab061e0ebb874221ae49b6535bbe3e36
parent6f4b3a814f79952dd38a18b82c89674a43e94e0a
CI: add libgcrypt to sanitizer run

Also disable check for unsigned integer overflow.

I couldn't find a way to reliably disable it for a single function:

https://github.com/google/sanitizers/issues/765

and warnings it produces do not seem to be of enough importance to
introduce ugly hacks like resetting the most significant byte here:

size_t result = 0;
// ...

for(; len; --len) {
result = (size_t)(result << 8);
//                      ^^^^
.ci/sanitizers/run.sh
.ci/sanitizers/suppress.txt [new file with mode: 0644]
.github/workflows/test.yml
src/gcrypt/pem.c
src/gcrypt/rsa.c