aboutsummaryrefslogtreecommitdiff
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:50:37 +0200
commit0ffe629a7f57424a460a05b7064a374835b1c279 (patch)
tree32498f9d596e9db0c59a03f0c0cabac3f45b09f9 /test
parent7dec308d1028a1fefea9ac8b89cc2932bcf47829 (diff)
downloadopenssl-0ffe629a7f57424a460a05b7064a374835b1c279.zip
openssl-0ffe629a7f57424a460a05b7064a374835b1c279.tar.gz
openssl-0ffe629a7f57424a460a05b7064a374835b1c279.tar.bz2
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 5d5991f..3f94d75 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);