fixed zlib param parsing
fix range check related to #45877