From 76f669b1cc631c334c24d8539067e3d3a7f22055 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 11 Jul 2024 14:47:58 -0500 Subject: [PATCH] wolfcrypt/src/asn.c: fix -Wconversion in GetLength_ex() added in fea7a89b86. --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 6a557b069..29efc64da 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -2306,7 +2306,7 @@ int GetLength_ex(const byte* input, word32* inOutIdx, int* len, word32 maxIdx, } /* Check the number of bytes required are available. */ - if ((idx + bytes) > maxIdx) { + if ((idx + (word32)bytes) > maxIdx) { WOLFSSL_MSG("GetLength - bad long length"); return BUFFER_E; }