[Bug 244681] archivers/unzip: handle trailing 0s in extra fields

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 8 13:55:46 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244681

            Bug ID: 244681
           Summary: archivers/unzip: handle trailing 0s in extra fields
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ehaupt at FreeBSD.org
          Reporter: michael.osipov at siemens.com
             Flags: maintainer-feedback?(ehaupt at FreeBSD.org)
          Assignee: ehaupt at FreeBSD.org

There seems to be ZIP files which contain trailing 0s in the extra fields.
Unzip reports: 

/usr/local/bin/unzip -tq f0a8...

> <filename>    bad extra-field entry:
>      EF block length (0 bytes) invalid (< 4)

This comes from patch-extract.c.

But

> /usr/bin/unzip -tq f0a8...
> No errors detected in compressed data of f0a8...

This has also been reported with
https://github.com/libarchive/libarchive/issues/1056 and fixed there with
https://github.com/libarchive/libarchive/commit/c2f931fc20e57bb6721b40d1fc3cff2d4e92496d

Such a patch should also be backported for this port.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list