You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We started getting panic on some of our routine gosec scans. I'm not certain as to what exactly triggers it, but it happens when scanning a large project.
I had to re-build the program with the generic panic handler removed to get this stack trace. It seems that somehow the "obj" parameter is nil (not a typed nil, but just a regular nil), causing a panic.
Any chance that you can share a sample code generating this panic? This panic is deep into the tools package which contains the SSA representation. This seems like out of gosec reach, but it might be that some update of the tools package introduced this issue.
Summary
We started getting panic on some of our routine gosec scans. I'm not certain as to what exactly triggers it, but it happens when scanning a large project.
I had to re-build the program with the generic panic handler removed to get this stack trace. It seems that somehow the "obj" parameter is nil (not a typed nil, but just a regular nil), causing a panic.
Steps to reproduce the behavior
Scan a directory using:
gosec version
2.22.0
Go version (output of 'go version')
1.23.2
Operating system / Environment
Linux
The text was updated successfully, but these errors were encountered: