From: Timo Sirainen Date: Thu, 16 Apr 2026 11:27:42 +0000 (+0200) Subject: [PATCH 08/12] doveadm: Fix ubsan unsigned integer overflow error X-Git-Tag: archive/raspbian/1%2.4.1+dfsg1-6+rpi1+deb13u7^2~33 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=55f377e5bcad7b13c471d3611f79b43f4efdbefa;p=dovecot.git [PATCH 08/12] doveadm: Fix ubsan unsigned integer overflow error Gbp-Pq: Name 0008-doveadm-Fix-ubsan-unsigned-integer-overflow-error.patch --- diff --git a/src/doveadm/doveadm-who.c b/src/doveadm/doveadm-who.c index 2fbef7b..ecdbb88 100644 --- a/src/doveadm/doveadm-who.c +++ b/src/doveadm/doveadm-who.c @@ -49,10 +49,10 @@ static unsigned int who_user_hash(const struct who_user *user) unsigned int hash = str_hash(user->service); if (user->username[0] != '\0') - hash += str_hash(user->username); + hash ^= str_hash(user->username); else { who_user_ip(user, &ip); - hash += net_ip_hash(&ip); + hash ^= net_ip_hash(&ip); } return hash; }