mirror of https://github.com/golang/go.git
For cases where RFC 1952 requires a field, the code returns the error
io.ErrUnexpectedEOF except in two places: for the FNAME flag or the
FCOMMENT flag. These flags expect a null-terminated string and
readString may return an EOF if the Reader is truncated before a
null byte is found. For consistency with parsing other parts of the
header, this is converted to an unexpected EOF herein.
Follow-up to CL 14832.
Fixes #51417
Change-Id: I173283a6ae309e4a8e52fc15df404ce5db06eff1
GitHub-Last-Rev:
|
||
|---|---|---|
| .. | ||
| bzip2 | ||
| flate | ||
| gzip | ||
| lzw | ||
| testdata | ||
| zlib | ||