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: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#49721: closed (NAME flag incorrectly set)
Date: Sun, 25 Jul 2021 15:30:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 25 Jul 2021 08:29:32 -0700
with message-id <db2cce4e-4fd3-a124-83d5-d5fa3b93c09a <at> cs.ucla.edu>
and subject line Re: bug#49721: NAME flag incorrectly set
has caused the debbugs.gnu.org bug report #49721,
regarding NAME flag incorrectly set
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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: 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/


[Message part 3 (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.


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.