diff options
author | Brad King <brad.king@kitware.com> | 2023-05-22 13:59:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-22 20:51:15 (GMT) |
commit | 5ec464a76f763ab590ca49dffa595ba183df72dc (patch) | |
tree | d5379fffb1010206ef241dc591372a9c25de1246 /Utilities/cmlibrhash | |
parent | e24c403816e38d4acf6cf998427d07ac5831a63a (diff) | |
download | CMake-5ec464a76f763ab590ca49dffa595ba183df72dc.zip CMake-5ec464a76f763ab590ca49dffa595ba183df72dc.tar.gz CMake-5ec464a76f763ab590ca49dffa595ba183df72dc.tar.bz2 |
librhash: Suppress clang-analyzer warnings
Diffstat (limited to 'Utilities/cmlibrhash')
-rw-r--r-- | Utilities/cmlibrhash/librhash/hex.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Utilities/cmlibrhash/librhash/hex.c b/Utilities/cmlibrhash/librhash/hex.c index f0bbf04..cfd5892 100644 --- a/Utilities/cmlibrhash/librhash/hex.c +++ b/Utilities/cmlibrhash/librhash/hex.c @@ -110,6 +110,9 @@ size_t rhash_base64_url_encoded_helper(char* dst, const unsigned char* src, size { #define B64_CHUNK_SIZE 120 char buffer[164]; + #ifdef __clang_analyzer__ + memset(buffer, 0, sizeof(buffer)); + #endif assert((BASE64_LENGTH(B64_CHUNK_SIZE) + 4) <= sizeof(buffer)); assert((B64_CHUNK_SIZE % 6) == 0); if (url_encode) { |