summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Baentsch <57787676+baentsch@users.noreply.github.com>2023-06-05 13:09:29 +0200
committerTomas Mraz <tomas@openssl.org>2023-06-06 15:51:21 +0200
commit3fbb364b192c3568947d5e164cc29ebe6f992205 (patch)
treee8167e75b105b828b7511342fa1fc2c2d9f4b64f /test
parent560208fb9746d32fc0e5d29dea2a51eb3339a1c9 (diff)
Cast the argument to unsigned char when calling isdigit()
Fixes #21123 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21127) (cherry picked from commit 8229874476cc2955e6947cf6d3fee09e13b8c160)
Diffstat (limited to 'test')
-rw-r--r--test/testutil/provider.c2
1 files changed, 1 insertions, 1 deletions
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);