Comment 13 for bug 1692073

Revision history for this message
In , Marc Deslauriers (mdeslaur) wrote :

Created attachment 7289
patch for newer zlib

When building ClamAV with zlib 1.2.9+, the following test fails during build:

check_bytecode.c:127:F:arithmetic:test_inflate_jit:0: cli_bytecode_run failed, expected: 0, have: 28

check_bytecode.c:108:E:arithmetic:test_inflate_int:0: (after this point) Received signal 11 (Segmentation fault)

Downstream bug:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1692073

This is caused by the following commit to zlib 1.2.9:
https://github.com/madler/zlib/commit/b516b4bdd7c0c9f0858adfebf732089014f7b282

Attached is the patch I used to fix this issue in Ubuntu. Thanks.