Skip to content
Snippets Groups Projects
Commit 3f66b725 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

lib-sieve: plugins: enotify: mailto: uri-mailto - Change _is_qchar() to accept char parameter.

It is used like that everywhere and ubsan complains about passing char to
unsigned char parameter.
parent a679bce4
No related branches found
No related tags found
No related merge requests found
......@@ -134,9 +134,9 @@ static const char _qchar_lookup[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // F0
};
static inline bool _is_qchar(unsigned char c)
static inline bool _is_qchar(char c)
{
return ((_qchar_lookup[c] & 0x01) != 0);
return ((_qchar_lookup[(unsigned char)c] & 0x01) != 0);
}
static inline int _decode_hex_digit(unsigned char digit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.