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
{{ message }}
Repository navigation
Consider not stripping the symbol table on binaries #506
I realized while running govulncheck in binary mode, if the binary is stripped of its symbol table, govulncheck falls back to reporting vulns based entirely on the version of modules rather than based on what's being called from that module. It's reasonable to think that users may run govulncheck in binary mode as part of their security auditing process.
For example, when I build as we do now, with -s (strip symbols) and -w (strip debug info) set,
go build -ldflags="-s -w" -o dbc ./cmd/dbc
# I get four vulns
But if I build without setting -s, I get none:
go build -ldflags="-w" -o dbc ./cmd/dbc
# no vulns
Basically, including symbols makes govulncheck binary analysis smarter. I had an agent rebuild all of our binaries without -s and the binary size impact isn't nothing but it's not a huge deal:
Activity