From 9c7d028465f4c9c28106b58b4514e5c6644bdeab Mon Sep 17 00:00:00 2001
From: Joshua Rogers <MegaManSec@users.noreply.github.com>
Date: Tue, 10 Feb 2026 01:16:51 +0100
Subject: 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++;
 }
 
