[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
1 file changed