diff options
author | Michael Baentsch <57787676+baentsch@users.noreply.github.com> | 2023-06-05 13:09:29 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-06-06 15:48:46 +0200 |
commit | 8229874476cc2955e6947cf6d3fee09e13b8c160 (patch) | |
tree | 4c3a9165da3b9c505cd6695f02126ad161930c21 /engines | |
parent | 18f82df5b14b3fba078c6c5f0f4a0bb8eee6c954 (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 'engines')
-rw-r--r-- | engines/e_loader_attic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/e_loader_attic.c b/engines/e_loader_attic.c index 15d7affb7d..f87bd921d0 100644 --- a/engines/e_loader_attic.c +++ b/engines/e_loader_attic.c @@ -1470,9 +1470,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 |