Skip to content

Bug report: Gzip comment not working #870

@zehuanli

Description

@zehuanli

Describe the bug
Very minor bug, but it would be great if this could be fixed:

The Gzip encoder has an optional Comment field that allows users to supply comment. (Documented in rfc1952, see FCOMMENT). It is implemented in Gzip.mjs but there's a typo - "options.flags.fcommenct" should actually be "options.flags.fcomment", as I assume from the context.

To Reproduce

  1. Open CyberChef
  2. Select Gzip operation and deflate some text, save the output (better as hex).
  3. Put something in the Comment field, compare the new output with the one in previous step.
  4. Observe that the comment was not put into the deflated data. (Although the new output will be different because different timestamps are used).

Expected behaviour
The text in the Comment field should present in the deflated data.

Desktop (if relevant, please complete the following information):

  • CyberChef version: [9.9.0]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions