Backport an upstream fix for CRC calculation. This fixes Java applications
authortb <tb@openbsd.org>
Sun, 8 May 2022 14:07:54 +0000 (14:07 +0000)
committertb <tb@openbsd.org>
Sun, 8 May 2022 14:07:54 +0000 (14:07 +0000)
commit21054319fb17378e25e4f58163fc539c07e6bbac
tree069ac1497db3b5a43e054340ff6aac7f0ae19e5d
parentc5288b00e8ac5cbc420f8ff5511281f46ecfb3f9
Backport an upstream fix for CRC calculation. This fixes Java applications
on some older hardware, see https://github.com/madler/zlib/issues/613

Pointed out by tj and sthen

commit ec3df00224d4b396e2ac6586ab5d25f673caa4c2
Author: Mark Adler <madler@alumni.caltech.edu>
Date:   Wed Mar 30 11:14:53 2022 -0700

    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.
sys/lib/libz/crc32.c