[zlib][asop] Fix incorrect slide_hash_simd Assert on hash_size

In zlib, hash_size is 1 << s->hash_bits or 65536 (at most) at maximum
memory level which makes the Assert(hash_size == (ush)hash_size) fail
at maximum zlib memory level (issue 1321435).

Fix this incorrect Assert: test that hash_size is bounded viz., 1<<16
at most, and 1<<8 at least.

Bug: 1316541, 1321435
Change-Id: Id1d28b1901905dcfdb889fcd5d3cdbc2a3d478a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3617306
Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#998237}
NOKEYCHECK=True
GitOrigin-RevId: 0e8968867160101c6726e979fae136b560e54def
diff --git a/slide_hash_simd.h b/slide_hash_simd.h
index 3b2e463..6f715bc 100644
--- a/slide_hash_simd.h
+++ b/slide_hash_simd.h
@@ -78,7 +78,8 @@
     Assert(sizeof(Pos) == 2, "Pos type size error: should be 2 bytes");
     Assert(sizeof(ush) == 2, "ush type size error: should be 2 bytes");
 
-    Assert(hash_size == (ush)hash_size, "Hash table size error");
+    Assert(hash_size <= (1 << 16), "Hash table maximum size error");
+    Assert(hash_size >= (1 << 8), "Hash table minimum size error");
     Assert(w_size == (ush)w_size, "Prev table size error");
 
     /*