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:48:46 +0200
commit8229874476cc2955e6947cf6d3fee09e13b8c160 (patch)
tree4c3a9165da3b9c505cd6695f02126ad161930c21 /test
parent18f82df5b14b3fba078c6c5f0f4a0bb8eee6c954 (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)
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 900324d81b..a40a72c929 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);