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: invalid memory address or nil pointer dereference #274

Open
LaurentBonnaud opened this issue Jan 7, 2025 · 1 comment

Comments

@LaurentBonnaud
Copy link

Hi,
I am trying the new Go version for the first time and got the following error:

$ ./checksec dir /usr/bin
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x558196b1eb86]

goroutine 1 [running]:
github.com/slimm609/checksec/pkg/utils.GetAllFilesFromDir({0x7ffd16acace8, 0x8}, 0x9?)
        /Users/briandavis/IdeaProjects/github/checksec/pkg/utils/files.go:93 +0x186
github.com/slimm609/checksec/cmd.init.func2(0xc00016c300?, {0xc00011c300?, 0x4?, 0x558196b9156c?})
        /Users/briandavis/IdeaProjects/github/checksec/cmd/dir.go:20 +0xb3
github.com/spf13/cobra.(*Command).execute(0x558196ea25c0, {0xc00011c2d0, 0x1, 0x1})
        /Users/briandavis/go/1.23.1/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989 +0xa91
github.com/spf13/cobra.(*Command).ExecuteC(0x558196ea39e0)
        /Users/briandavis/go/1.23.1/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/briandavis/go/1.23.1/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
github.com/slimm609/checksec/cmd.Execute()
        /Users/briandavis/IdeaProjects/github/checksec/cmd/root.go:29 +0x71
main.main()
        /Users/briandavis/IdeaProjects/github/checksec/main.go:13 +0x10c
@slimm609
Copy link
Owner

This should be fixed in the upcoming 3.0.1 release

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

2 participants