From unknown Sat Aug 09 05:04:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49721: NAME flag incorrectly set Resent-From: Lee Shallis Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Sat, 24 Jul 2021 16:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49721 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: 49721@debbugs.gnu.org X-Debbugs-Original-To: bug-gzip@gnu.org Reply-To: gb2985@gmail.com Received: via spool by submit@debbugs.gnu.org id=B.162714427423722 (code B ref -1); Sat, 24 Jul 2021 16:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jul 2021 16:31:14 +0000 Received: from localhost ([127.0.0.1]:46805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7KYS-0006AW-R5 for submit@debbugs.gnu.org; Sat, 24 Jul 2021 12:31:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:33952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7Eic-0006kQ-Bn for submit@debbugs.gnu.org; Sat, 24 Jul 2021 06:17:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7Eic-0000Bb-1U for bug-gzip@gnu.org; Sat, 24 Jul 2021 06:17:18 -0400 Received: from mail-ua1-x92a.google.com ([2607:f8b0:4864:20::92a]:43640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7Eia-0005kY-Fb for bug-gzip@gnu.org; Sat, 24 Jul 2021 06:17:17 -0400 Received: by mail-ua1-x92a.google.com with SMTP id j7so1460050uaj.10 for ; Sat, 24 Jul 2021 03:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=xSnebooPNYfDkZmeAQHhZmZRq+xnBlpdPXY2t8DzX+c=; b=t1w9lg518++/nSzbCtmy/yn24Z1gkOH/m9Fv2u5HYGVzss7jN5YglwcfW4beKTNlUa tj8XdjdF0TucQfVWh1WjaO9T/T6DCmd2YecQXs2+JgCaV8Z/yqVTWHB0ulUvUnFyQgI9 BL/HCyAY1qwWxQJuYmgpxQtiOlHymxdHurBhn6Su2FcEtBKVBo0tF+ZLe/Djw5/bMFC+ hUChXy6qGVqr1obpvb/zOnjzUy5eAYudVKP6AcHSp5whjPLJoZzD+69ty0QJbb4rUX9M Iq2TqbSGBaDfTUgqPSu2NXLOaSBVDvpbcHGISB0Kjon4smaSFOzkG0WmbRYIBz3ivLfI YNLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=xSnebooPNYfDkZmeAQHhZmZRq+xnBlpdPXY2t8DzX+c=; b=cQrud71goyZeqAwiCLue2zdjVr3ejoTjE8kKyNAGew5pZLE1Kvl3bJmdCtm+9Rao9d CIjHApc5MCulkGYn5+Ae62nJG12QwE+cBDHmKp0Fiw8YTqq12rnxRHioQz8AaMkHJmKl ljLWhzpuO6BpK4NwAWYqE8fr5HXsbKbIrjkgcikZBJuLpLQ5lwCgZp+KdkKmfYDidyAj YQn7hij70iKEJ1uu3VNKnNJi1HTH1sEVtb/uF8vajP7n5YSoiVKzmYfM3JlNxV52ihtm 8cGkJ4XJzdRkc+ioMc/9IV1A1pTP59D1BPE9KnbXIuNUdzEdF68JyKtFfiUntqbAm0V3 ugOg== X-Gm-Message-State: AOAM5334sr7U0hP4OMsUIy+gl6JdMQRX0ayGBF9jNr/il4V7y3hpVF0z l8MZ8Di+6BrflaM0oz4pq/CnG5UwevCcSQbtgLRJ3Bbuo7oHyQ== X-Google-Smtp-Source: ABdhPJxxCOfd6cN4O/lmV7ABMPhJJde/0mF7eHgYWqG41HGoZA1JvmSsKrHSfcuxTtGgVdU/Yh73Rw6t5FMc5/eWvgA= X-Received: by 2002:ab0:76d0:: with SMTP id w16mr7676668uaq.15.1627121834405; Sat, 24 Jul 2021 03:17:14 -0700 (PDT) MIME-Version: 1.0 From: Lee Shallis Date: Sat, 24 Jul 2021 11:14:25 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::92a; envelope-from=gb2985@gmail.com; helo=mail-ua1-x92a.google.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO_END_DIGIT=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-Mailman-Approved-At: Sat, 24 Jul 2021 12:31:11 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) 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/ From unknown Sat Aug 09 05:04:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49721: NAME flag incorrectly set Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Sat, 24 Jul 2021 19:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49721 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: gb2985@gmail.com Cc: 49721@debbugs.gnu.org Received: via spool by 49721-submit@debbugs.gnu.org id=B49721.162715515217632 (code B ref 49721); Sat, 24 Jul 2021 19:33:02 +0000 Received: (at 49721) by debbugs.gnu.org; 24 Jul 2021 19:32:32 +0000 Received: from localhost ([127.0.0.1]:47078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7NNw-0004aK-3P for submit@debbugs.gnu.org; Sat, 24 Jul 2021 15:32:32 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:50848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7NNt-0004a6-Ob for 49721@debbugs.gnu.org; Sat, 24 Jul 2021 15:32:30 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 481A01600EB; Sat, 24 Jul 2021 12:32:24 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id q0XS-rpt779e; Sat, 24 Jul 2021 12:32:23 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 864461600ED; Sat, 24 Jul 2021 12:32:23 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id TfXbHpQjhc80; Sat, 24 Jul 2021 12:32:23 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 5CCA51600EB; Sat, 24 Jul 2021 12:32:23 -0700 (PDT) References: From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Sat, 24 Jul 2021 12:32:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) On 7/24/21 3:14 AM, Lee Shallis wrote: > when I put this: > > echo "hello hello hello hello" | gzip > > into the terminal gzip incorrectly set the NAME flag I suppose you're talking about the FNAME flag described by RFC 1952? I don't observe any problem with gzip 1.10: $ echo "hello hello hello hello" | gzip | od -t x1 0000000 1f 8b 08 00 00 00 00 00 00 03 cb 48 cd c9 c9 57 0000020 c8 40 27 b9 00 00 88 59 0b 18 00 00 00 0000035 The FLG byte is 00, which means FNAME is not set. From unknown Sat Aug 09 05:04:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: gb2985@gmail.com Subject: bug#49721: closed (Re: bug#49721: NAME flag incorrectly set) Message-ID: References: X-Gnu-PR-Message: they-closed 49721 X-Gnu-PR-Package: gzip Reply-To: 49721@debbugs.gnu.org Date: Sun, 25 Jul 2021 15:30:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1627227003-28856-1" This is a multi-part message in MIME format... ------------=_1627227003-28856-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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@debbugs.gnu.org. --=20 49721: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49721 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1627227003-28856-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 49721-done) by debbugs.gnu.org; 25 Jul 2021 15:29:40 +0000 Received: from localhost ([127.0.0.1]:49171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7g4S-0007UZ-0Z for submit@debbugs.gnu.org; Sun, 25 Jul 2021 11:29:40 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:41510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7g4Q-0007UO-Ri for 49721-done@debbugs.gnu.org; Sun, 25 Jul 2021 11:29:39 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8B63E1600C3; Sun, 25 Jul 2021 08:29:33 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id wG-K7C5sm3DX; Sun, 25 Jul 2021 08:29:33 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EA7FE1600DB; Sun, 25 Jul 2021 08:29:32 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id EU76rSRauPkT; Sun, 25 Jul 2021 08:29:32 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id C49FB1600C3; Sun, 25 Jul 2021 08:29:32 -0700 (PDT) Subject: Re: bug#49721: NAME flag incorrectly set To: gb2985@gmail.com References: From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Sun, 25 Jul 2021 08:29:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 49721-done Cc: 49721-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) 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. ------------=_1627227003-28856-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 24 Jul 2021 16:31:14 +0000 Received: from localhost ([127.0.0.1]:46805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7KYS-0006AW-R5 for submit@debbugs.gnu.org; Sat, 24 Jul 2021 12:31:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:33952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7Eic-0006kQ-Bn for submit@debbugs.gnu.org; Sat, 24 Jul 2021 06:17:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7Eic-0000Bb-1U for bug-gzip@gnu.org; Sat, 24 Jul 2021 06:17:18 -0400 Received: from mail-ua1-x92a.google.com ([2607:f8b0:4864:20::92a]:43640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7Eia-0005kY-Fb for bug-gzip@gnu.org; Sat, 24 Jul 2021 06:17:17 -0400 Received: by mail-ua1-x92a.google.com with SMTP id j7so1460050uaj.10 for ; Sat, 24 Jul 2021 03:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=xSnebooPNYfDkZmeAQHhZmZRq+xnBlpdPXY2t8DzX+c=; b=t1w9lg518++/nSzbCtmy/yn24Z1gkOH/m9Fv2u5HYGVzss7jN5YglwcfW4beKTNlUa tj8XdjdF0TucQfVWh1WjaO9T/T6DCmd2YecQXs2+JgCaV8Z/yqVTWHB0ulUvUnFyQgI9 BL/HCyAY1qwWxQJuYmgpxQtiOlHymxdHurBhn6Su2FcEtBKVBo0tF+ZLe/Djw5/bMFC+ hUChXy6qGVqr1obpvb/zOnjzUy5eAYudVKP6AcHSp5whjPLJoZzD+69ty0QJbb4rUX9M Iq2TqbSGBaDfTUgqPSu2NXLOaSBVDvpbcHGISB0Kjon4smaSFOzkG0WmbRYIBz3ivLfI YNLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=xSnebooPNYfDkZmeAQHhZmZRq+xnBlpdPXY2t8DzX+c=; b=cQrud71goyZeqAwiCLue2zdjVr3ejoTjE8kKyNAGew5pZLE1Kvl3bJmdCtm+9Rao9d CIjHApc5MCulkGYn5+Ae62nJG12QwE+cBDHmKp0Fiw8YTqq12rnxRHioQz8AaMkHJmKl ljLWhzpuO6BpK4NwAWYqE8fr5HXsbKbIrjkgcikZBJuLpLQ5lwCgZp+KdkKmfYDidyAj YQn7hij70iKEJ1uu3VNKnNJi1HTH1sEVtb/uF8vajP7n5YSoiVKzmYfM3JlNxV52ihtm 8cGkJ4XJzdRkc+ioMc/9IV1A1pTP59D1BPE9KnbXIuNUdzEdF68JyKtFfiUntqbAm0V3 ugOg== X-Gm-Message-State: AOAM5334sr7U0hP4OMsUIy+gl6JdMQRX0ayGBF9jNr/il4V7y3hpVF0z l8MZ8Di+6BrflaM0oz4pq/CnG5UwevCcSQbtgLRJ3Bbuo7oHyQ== X-Google-Smtp-Source: ABdhPJxxCOfd6cN4O/lmV7ABMPhJJde/0mF7eHgYWqG41HGoZA1JvmSsKrHSfcuxTtGgVdU/Yh73Rw6t5FMc5/eWvgA= X-Received: by 2002:ab0:76d0:: with SMTP id w16mr7676668uaq.15.1627121834405; Sat, 24 Jul 2021 03:17:14 -0700 (PDT) MIME-Version: 1.0 From: Lee Shallis Date: Sat, 24 Jul 2021 11:14:25 +0100 Message-ID: Subject: NAME flag incorrectly set To: bug-gzip@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::92a; envelope-from=gb2985@gmail.com; helo=mail-ua1-x92a.google.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO_END_DIGIT=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 24 Jul 2021 12:31:11 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: gb2985@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) 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/ ------------=_1627227003-28856-1--