[crypto,base64] ensure char is singend

This commit is contained in:
akallabeth
2026-01-10 08:31:07 +01:00
parent 7b7e6de8fe
commit 62a9e787ed

View File

@@ -400,7 +400,8 @@ static inline char* base64_encode(const BYTE* WINPR_RESTRICT alphabet,
static inline int base64_decode_char(const signed char* WINPR_RESTRICT alphabet, char c)
{
if (c <= '\0')
/* ensure char is signed for this check */
if ((int)c <= '\0')
return -1;
return alphabet[(size_t)c];