From 3fbb364b192c3568947d5e164cc29ebe6f992205 Mon Sep 17 00:00:00 2001 From: Michael Baentsch <57787676+baentsch@users.noreply.github.com> Date: Mon, 5 Jun 2023 13:09:29 +0200 Subject: Cast the argument to unsigned char when calling isdigit() Fixes #21123 Reviewed-by: Matt Caswell Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/21127) (cherry picked from commit 8229874476cc2955e6947cf6d3fee09e13b8c160) --- test/testutil/provider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/testutil/provider.c b/test/testutil/provider.c index 5d5991f502..3f94d7506e 100644 --- a/test/testutil/provider.c +++ b/test/testutil/provider.c @@ -201,7 +201,7 @@ int fips_provider_version_match(OSSL_LIB_CTX *libctx, const char *versions) } else if (*p == '>') { mode = MODE_GT; p++; - } else if (isdigit(*p)) { + } else if (isdigit((unsigned char)*p)) { mode = MODE_EQ; } else { TEST_info("Error matching FIPS version: mode %s\n", p); -- cgit v1.2.3