Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(decompress_zip): "runtime error: invalid memory address or nil pointer dereference" #343

Closed
joaoReigota1 opened this issue Dec 20, 2021 · 0 comments

Comments

@joaoReigota1
Copy link
Contributor

When running decompress on a protected zip such as protected-AES-256.zip which has a password: 123, go-getter returns a panic in decompress_zip.go:77

image

Maybe to fix this panic:

srcF, err := f.Open()
if err != nil {
  if srcF != nil {
    srcF.Close()
  }
  return err
}
joaoReigota1 added a commit to joaoReigota1/go-getter that referenced this issue Dec 20, 2021
hashicorp#343)

Signed-off-by: João Reigota <joao.reigota@checkmarx.com>
azr pushed a commit that referenced this issue Feb 1, 2022
#343) (#344)

Signed-off-by: João Reigota <joao.reigota@checkmarx.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant