From 0cf56a543692f92f1541b005be14cf8f4a773347 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 6 Feb 2026 16:20:39 +0100 Subject: [PATCH] cppcheck: avoid undef behavior in variadic fct warning --- client/src/fido/fidocore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/fido/fidocore.c b/client/src/fido/fidocore.c index 2790ccd9c..f49eb9496 100644 --- a/client/src/fido/fidocore.c +++ b/client/src/fido/fidocore.c @@ -389,7 +389,7 @@ static int FIDO2CheckSignature(json_t *root, uint8_t *publickey, uint8_t *sign, res = FillBuffer(xbuf, sizeof(xbuf), &xbuflen, authData, authDataLen, // rpIdHash[32] + flags[1] + signCount[4] clientDataHash, 32, // Hash of the serialized client data. "$.ClientDataHash" from json - NULL, 0); + (uint8_t *)NULL, 0); PrintAndLogEx(DEBUG, "--xbuf(%d)[%zu]: %s", res, xbuflen, sprint_hex(xbuf, xbuflen)); res = ecdsa_signature_verify(MBEDTLS_ECP_DP_SECP256R1, publickey, xbuf, xbuflen, sign, signLen, true);