summaryrefslogtreecommitdiffstats
path: root/engines
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 /engines
parent7dec308d1028a1fefea9ac8b89cc2932bcf47829 (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 'engines')
-rw-r--r--engines/e_loader_attic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/e_loader_attic.c b/engines/e_loader_attic.c
index 87056c4de1..6a1df9b23c 100644
--- a/engines/e_loader_attic.c
+++ b/engines/e_loader_attic.c
@@ -1486,9 +1486,9 @@ static int file_name_check(OSSL_STORE_LOADER_CTX *ctx, const char *name)
* Last, check that the rest of the extension is a decimal number, at
* least one digit long.
*/
- if (!isdigit(*p))
+ if (!isdigit((unsigned char)*p))
return 0;
- while (isdigit(*p))
+ while (isdigit((unsigned char)*p))
p++;
#ifdef __VMS