md5: disable unsigned-integer-overflow sanitizer

This commit is contained in:
Boris Faure 2020-06-12 22:35:22 +02:00
parent 668c506a18
commit 2d9d1c6a82
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ void MD5Final(unsigned char digest[16], MD5_CTX *ctx)
#define MD5STEP(f, w, x, y, z, data, s) \
( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )
#if defined(__clang__)
__attribute__((no_sanitize("unsigned-integer-overflow")))
#endif
/*
* The core of the MD5 algorithm, this alters an existing MD5 hash to
* reflect the addition of 16 longwords of new data. MD5Update blocks