Merge pull request #8220 from bloodorangeio/fix-helm-chart-list-crash-bug

Fix crashing `helm chart list` with large list
pull/8272/head
Matthew Fisher 5 years ago committed by GitHub
commit 47feb20042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -357,6 +357,8 @@ func (cache *Cache) fetchBlob(desc *ocispec.Descriptor) ([]byte, error) {
if err != nil {
return nil, err
}
defer reader.Close()
bytes := make([]byte, desc.Size)
_, err = reader.ReadAt(bytes, 0)
if err != nil {

Loading…
Cancel
Save