Skip to content

archive/zip: off-by-one writing directory64 records #14186

Description

@rsc

archive/zip/writer.go says:

if records > uint16max || size > uint32max || offset > uint32max {

but each of these > should probably be >=.

See the similar bug fixed in https://go-review.googlesource.com/#/c/18317/ for writing data files of size uint32max.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions