zipinfo crashes without arguments

Bug #1429939 reported by Egmont Koblinger on 2015-03-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unzip (Ubuntu)
Undecided
Unassigned

Bug Description

In Trusty, "zipinfo" or "unzip -Z" printed its usage (it looks suspiciously wrong, e.g. with some invalid UTF-8, but anyway it survives) and exits cleanly (with exit code 0).

In Utopic, the same command prints some usage info (probably not everything it wishes to print), and then crashes with the message "error: zipfile probably corrupt (segmentation violation)" and returns with exit code 3.

This causes problems e.g. for midnight commander's configure script (Ubuntu's mc has a workaround for it, but this bug is the root cause, and I'd like to compile mc myself for other reasons).

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: unzip 6.0-12ubuntu1.3
ProcVersionSignature: Ubuntu 3.16.0-31.41-generic 3.16.7-ckt5
Uname: Linux 3.16.0-31-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.2
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Mar 9 18:02:44 2015
Dependencies:
 gcc-4.9-base 4.9.1-16ubuntu6
 libbz2-1.0 1.0.6-5ubuntu5
 libc6 2.19-10ubuntu2.3
 libgcc1 1:4.9.1-16ubuntu6
 multiarch-support 2.19-10ubuntu2.3
InstallationDate: Installed on 2012-05-30 (1012 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: unzip
UpgradeStatus: Upgraded to utopic on 2014-09-30 (159 days ago)

Egmont Koblinger (egmont-gmail) wrote :
Egmont Koblinger (egmont-gmail) wrote :

Buggy in vivid too (running vivid's binary on utopic).

tags: added: vivid
Egmont Koblinger (egmont-gmail) wrote :

Note: unzip (without any arguments, or with --help) says:
-Z => ZipInfo mode ("unzip -Z" for usage)

That is, "unzip -Z" without any arguments _is_ documented to be a valid usage, hence it's expected not to emit error messages and exit with 0.

Czikus (czikus-gmail) wrote :

I concur , this is annoying and makes mc quite unusable with zip files.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments