mirror of https://github.com/golang/go.git
The zip reader checks that the uncompressed file size is valid after all compressed files read until EOF. However in between reading each file, there could have already been an overflow where nread > UncompressedSize64 hence this change will now return ErrFormat in such situations. Fixes #49791 Change-Id: If3584a57d173de6a97bf35c07d2a99ff6972f820 Reviewed-on: https://go-review.googlesource.com/c/go/+/366854 Trust: mzh <mzh@golangcn.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Trust: Emmanuel Odeke <emmanuel@orijtech.com> |
||
|---|---|---|
| .. | ||
| testdata | ||
| example_test.go | ||
| fuzz_test.go | ||
| reader.go | ||
| reader_test.go | ||
| register.go | ||
| struct.go | ||
| writer.go | ||
| writer_test.go | ||
| zip_test.go | ||