Skip to content

Commit

Permalink
Mute a pkcs12_plug.c warning that (hopefully) is a false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
magnumripper committed Dec 2, 2024
1 parent 6b0b371 commit 05e62f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pkcs12_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 05e62f5

Please sign in to comment.