Correct incorrect inputs provided to the CRC functions.
The previous releases of zlib were not sensitive to incorrect CRC
inputs with bits set above the low 32. This commit restores that
behavior, so that applications with such bugs will continue to
operate as before.
(cherry picked from commit ec3df00224d4b396e2ac6586ab5d25f673caa4c2)