GNU bug report logs - #31280
zgrep foo binaryfilepath says "Binary file (standard input) matches"

Previous Next

Package: gzip;

Reported by: jim.avera <at> gmail.com

Date: Fri, 27 Apr 2018 05:18:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31280 in the body.
You can then email your comments to 31280 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#31280; Package gzip. (Fri, 27 Apr 2018 05:18:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to jim.avera <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Fri, 27 Apr 2018 05:18:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jim Avera <jim.avera <at> gmail.com>
To: bug-gzip <at> gnu.org
Subject: zgrep foo binaryfilepath says "Binary file (standard input) matches"
Date: Thu, 26 Apr 2018 21:33:54 -0700
Hello,

There is a bug in zgrep (gzip) 1.6 where the output from zgrep 
incorrectly says  "(standard input") instead the file path name given on 
the command line.

This happens if the input data is not actually compressed, but is binary 
data.

STEPS TO REPRODUCE:

perl -wE 'print "foobar",("\x0" x 1000)' > /tmp/testfile.dat  # make a 
binary file
zgrep foobar /tmp/testfile.dat

RESULTS:

Binary file (standard input) matches

EXPECTED RESULTS:

Binary file /tmp/testfile.dat matches





Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Thu, 07 Apr 2022 19:33:02 GMT) Full text and rfc822 format available.

Notification sent to jim.avera <at> gmail.com:
bug acknowledged by developer. (Thu, 07 Apr 2022 19:33:02 GMT) Full text and rfc822 format available.

Message #10 received at 31280-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: jim.avera <at> gmail.com
Cc: 31280-done <at> debbugs.gnu.org
Subject: Re: zgrep foo binaryfilepath says "Binary file (standard input)
 matches"
Date: Thu, 7 Apr 2022 12:32:22 -0700
Thanks for your bug report. This bug should be fixed in gzip 1.12, 
released today. The bug fix is here:

https://git.savannah.gnu.org/cgit/gzip.git/commit/?id=9d3248751178939713a39115cf68ec8a11506cc9




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 06 May 2022 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.