[zlib] Fix deflateBound() with chromium_zlib_hash and non-default memLevel

When chromium_zlib_hash is enabled, we set hash_bits to 15 regardless
of memLevel, throwing off the computations in deflateBound(). Return
a conservative bound instead for now.

Bug: 40270738
Change-Id: I9fbe64887ff9520e22d1be5d0557548ec2e7db45
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5335167
Auto-Submit: Hans Wennborg <hans@chromium.org>
Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org>
Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1267210}
NOKEYCHECK=True
GitOrigin-RevId: bd787538b3dc5dcd9243d4ef0a524fdf07cd87b0
2 files changed