GNU bug report logs - #49721
NAME flag incorrectly set

Previous Next

Package: gzip;

Reported by: gb2985 <at> gmail.com

Date: Sat, 24 Jul 2021 16:32:01 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: gb2985 <at> gmail.com
Subject: bug#49721: closed (Re: bug#49721: NAME flag incorrectly set)
Date: Sun, 25 Jul 2021 15:30:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#49721: NAME flag incorrectly set

which was filed against the gzip package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 49721 <at> debbugs.gnu.org.

-- 
49721: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49721
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: gb2985 <at> gmail.com
Cc: 49721-done <at> debbugs.gnu.org
Subject: Re: bug#49721: NAME flag incorrectly set
Date: Sun, 25 Jul 2021 08:29:32 -0700
On 7/25/21 8:24 AM, Lee Shallis wrote:
> I just noticed my misunderstanding, seems because I forgot to read the
> compression byte as a compression byte, it got read as the flags byte,
> so I was off by a byte when reading the flags without realising.

Thanks for following up. Closing the bug report.

[Message part 3 (message/rfc822, inline)]
From: Lee Shallis <gb2985 <at> gmail.com>
To: bug-gzip <at> gnu.org
Subject: NAME flag incorrectly set
Date: Sat, 24 Jul 2021 11:14:25 +0100
I've been following a guide on the deflate algorithm (because I wanted
one where I could control how memory is allocated just as Lua allows)
and found when I put this:

echo "hello hello hello hello" | gzip

into the terminal gzip incorrectly set the NAME flag, it was only
after editing it out I was able to deflate the resulting file, the
same applies for this:

echo -n "abaabbbabaababbaababaaaabaaabbbbbaa" | gzip

Both of which are the examples given on
https://blog.za3k.com/understanding-gzip-2/



This bug report was last modified 3 years and 352 days ago.

Previous Next


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