• Brad Fitzpatrick's avatar
    archive/zip: fix bug reading zip64 files · 02a15e71
    Brad Fitzpatrick authored
    ZIP64 Extra records are variably sized, but we weren't capping
    our reading of the extra fields at its previously-declared
    size.
    
    No test because I don't know how to easily create such files
    and don't feel like manually construction one.  But all
    existing tests pass, and this is "obviously correct" (queue
    laughter).
    
    Fixes #7069
    
    R=golang-codereviews, iant
    CC=golang-codereviews
    https://golang.org/cl/48150043
    02a15e71
reader.go 11.9 KB