This code in looks a bit broken: ___ /* a ZIP64 extended block may follow. */ size_t csize = zzip_file_header_csize(header); off_t offset = zzip_file_header_to_data(header); if (csize == 0xFFFFu) { struct zzip_extra_zip64* zip64 = zzip_file_header_to_extras(header); if (ZZIP_EXTRA_ZIP64_CHECK(zip64)) { csize = zzip_extra_zip64_csize(zip64); } } if (offset == 0xFFFFu) { struct zzip_extra_zip64* zip64 = zzip_file_header_to_extras(header); if (ZZIP_EXTRA_ZIP64_CHECK(zip64)) { offset = zzip_extra_zip64_offset(zip64); } } … file->zlib.next_in = offset; The comparison offset == 0xFFFFu is effectively a pointer conversation because zzip_file_header_to_data returns a pointer, so it cannot be true. This means that offset is not adjusted if there is a ZIP64 header, and decompression does not start at the right file offset. GCC 14 will refuse to compile this because of the pointer/integer type error in the offset variable initialization. Reproducible: Always
There is a second upstream PR (https://github.com/gdraheim/zziplib/pull/150) with more type error fixes. Note that currently, the first PR (https://github.com/gdraheim/zziplib/pull/141) does not actually fix the ZIP64 bug.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40.
This message is a reminder that Fedora Linux 40 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '40'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 40 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13. Fedora Linux 40 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed.