From 05e62f52d92f945748d4b8d2d61b3b6a97ee95b7 Mon Sep 17 00:00:00 2001 From: magnum Date: Mon, 2 Dec 2024 16:17:13 +0100 Subject: [PATCH] Mute a pkcs12_plug.c warning that (hopefully) is a false positive --- src/pkcs12_plug.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pkcs12_plug.c b/src/pkcs12_plug.c index 95dc5e19bf..56404d74a1 100644 --- a/src/pkcs12_plug.c +++ b/src/pkcs12_plug.c @@ -416,6 +416,13 @@ static void pkcs12_fill_buffer_simd(unsigned char *data[SIMD_MAX_GROUP_PFX], siz } } +/* + * Mute what appears to be a false positive in gcc 12-14, see #5154 + */ +#if __GNUC__ >= 12 && __GNUC__ <= 14 +#pragma GCC diagnostic ignored "-Wstringop-overflow" +#endif + static int pkcs12_derivation_simd_sha1( unsigned char *data[SSE_GROUP_SZ_SHA1], size_t datalen, const unsigned char *pwd[SSE_GROUP_SZ_SHA1], size_t pwdlen[SSE_GROUP_SZ_SHA1], const unsigned char *salt, size_t saltlen, int id, int iterations )