[zlib] Rewrite deflate_fuzzer: cover more configs, stream the input

Zlib has a lot of parameters that can be used for deflate compression.
This makes the fuzzer cover a much larger set of them.

It also streams the input in an attempt to cover more interesting code
paths.

I have verified that this allows the fuzzer to hit the issues in the
first two linked bugs. Let's see if it finds something else too :-)

Bug: 1113142, 1113596, 708726
Change-Id: Ib345460c25787ee639b626cc37fc887017d65246
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2433344
Reviewed-by: Max Moroz <mmoroz@chromium.org>
Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org>
Commit-Queue: Hans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811613}
GitOrigin-RevId: a7d72757624ece89b5e6c98d25c73f841a2844dc
1 file changed