Backport fix for zlib inflation with custom dicts to 4.x
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
zlib
Description of change
Backport of #8512 as requested in comments.