From: Marco Bettini Date: Mon, 12 Jan 2026 15:59:29 +0000 (+0000) Subject: lib: quoted_printable_q_decode() - Use explicit type conversion to fix ubsan errors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66f004439718c7f5189222ddb487d892a86d6d40;p=thirdparty%2Fdovecot%2Fcore.git lib: quoted_printable_q_decode() - Use explicit type conversion to fix ubsan errors --- diff --git a/src/lib-mail/quoted-printable.c b/src/lib-mail/quoted-printable.c index 9bfbe35ca5..2bdae5a493 100644 --- a/src/lib-mail/quoted-printable.c +++ b/src/lib-mail/quoted-printable.c @@ -32,8 +32,8 @@ int quoted_printable_q_decode(const unsigned char *src, size_t src_size, break; /* = */ - hexbuf[0] = src[src_pos+1]; - hexbuf[1] = src[src_pos+2]; + hexbuf[0] = (char) src[src_pos+1]; + hexbuf[1] = (char) src[src_pos+2]; if (hex_to_binary(hexbuf, dest) == 0) { src_pos += 2;