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

panic: runtime error: slice bounds out of range [:3] with capacity 0 #11142

Closed
aep opened this issue Jul 13, 2022 · 0 comments
Closed

panic: runtime error: slice bounds out of range [:3] with capacity 0 #11142

aep opened this issue Jul 13, 2022 · 0 comments
Labels
bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@aep
Copy link
Contributor

aep commented Jul 13, 2022

Output of helm version: version.BuildInfo{Version:"v3.9.0", GitCommit:"7ceeda6c585217a19a1131663d8cd1f7d641b2a7", GitTreeState:"clean", GoVersion:"go1.18.2"}

Output of kubectl version: Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.6", GitCommit:"ad3338546da947756e8a88aa6822e9c11e7eac22", GitTreeState:"clean", BuildDate:"2022-04-14T08:49:13Z", GoVersion:"go1.17.9", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.): https://kraud.cloud


https://github.com/helm/helm/blob/main/pkg/storage/driver/secrets.go#L95

does not check if the key is actually set


panic: runtime error: slice bounds out of range [:3] with capacity 0

goroutine 1 [running]:
helm.sh/helm/v3/pkg/storage/driver.decodeRelease({0x0?, 0x0?})
	helm.sh/helm/v3/pkg/storage/driver/util.go:66 +0x305
helm.sh/helm/v3/pkg/storage/driver.(*Secrets).Query(0xc000473140, 0xc0003c9b90?)
	helm.sh/helm/v3/pkg/storage/driver/secrets.go:134 +0x3ef
helm.sh/helm/v3/pkg/storage.(*Storage).History(0xc0000b9c00, {0x7ffcf5681c07, 0xc})
	helm.sh/helm/v3/pkg/storage/storage.go:156 +0x146
helm.sh/helm/v3/pkg/action.(*Install).availableName(0xc0003fec60)
	helm.sh/helm/v3/pkg/action/install.go:473 +0x7c
helm.sh/helm/v3/pkg/action.(*Install).RunWithContext(0xc0003fec60, {0x55cd74910870?, 0xc001a0fc80}, 0x2?, 0x3b?)
	helm.sh/helm/v3/pkg/action/install.go:197 +0xa5
main.runInstall({0xc00090fd00?, 0x2, 0x4}, 0xc0003fec60, 0x55cd748f1290?, {0x55cd748f9a48?, 0xc00000e018})
	helm.sh/helm/v3/cmd/helm/install.go:264 +0x86e
main.newInstallCmd.func2(0xc0003bb900?, {0xc00090fd00?, 0x4?, 0x4?})
	helm.sh/helm/v3/cmd/helm/install.go:125 +0x51
github.com/spf13/cobra.(*Command).execute(0xc0003bb900, {0xc00090fcc0, 0x4, 0x4})
	github.com/spf13/cobra@v1.4.0/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xc000429b80)
	github.com/spf13/cobra@v1.4.0/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/cobra@v1.4.0/command.go:902
main.main()
	helm.sh/helm/v3/cmd/helm/helm.go:83 +0x235

aep added a commit to aep/helm that referenced this issue Jul 13, 2022
aep added a commit to aep/helm that referenced this issue Jul 13, 2022
Signed-off-by: Arvid E. Picciani <arvid@kraud.cloud>
@yxxhero yxxhero added the bug Categorizes issue or PR as related to a bug. label Jul 14, 2022
@mattfarina mattfarina added this to the 3.9.3 milestone Aug 9, 2022
mattfarina added a commit that referenced this issue Aug 9, 2022
fixes #11142 missing array length check on release
mattfarina pushed a commit that referenced this issue Aug 9, 2022
Signed-off-by: Arvid E. Picciani <arvid@kraud.cloud>
(cherry picked from commit b9f347a)
zak905 pushed a commit to zak905/helm that referenced this issue Jan 19, 2023
Signed-off-by: Arvid E. Picciani <arvid@kraud.cloud>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants