From: Joshua Rogers Date: Tue, 10 Feb 2026 00:16:51 +0000 (+0100) Subject: Lib: Fix mem_hash_mix_str() infinite loop/OOB read X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8d7ff678a16a20adc8afbb26153f91992a1dcab;p=thirdparty%2Fbird.git Lib: Fix mem_hash_mix_str() infinite loop/OOB read --- diff --git a/lib/hash.h b/lib/hash.h index 3c173958f..41409e47e 100644 --- a/lib/hash.h +++ b/lib/hash.h @@ -219,7 +219,7 @@ static inline void mem_hash_mix_str(u64 *h, const char *s) { const u64 multiplier = 0xb38bc09a61202731ULL; - while (s) + while (*s) *h = *h * multiplier + *s++; }