Skip to content

Commit

Permalink
internal/vulncheck: handle symbols ending with .
Browse files Browse the repository at this point in the history
For some binaries, a symbol can end in ".", so this CL handles that
case.

Change-Id: I7c3634eb9cc13ee4cd18d6787460e645dbbfdfae
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/594355
Reviewed-by: Maceo Thompson <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
zpavlinovic committed Jun 24, 2024
1 parent dfbdf81 commit dd23607
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/vulncheck/witness.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,5 +443,8 @@ func isExported(symbol string) bool {
if len(parts) == 1 {
return unicode.IsUpper(rune(symbol[0]))
}
return unicode.IsUpper(rune(parts[1][0]))
if len(parts[1]) > 0 {
return unicode.IsUpper(rune(parts[1][0]))
}
return false
}

0 comments on commit dd23607

Please sign in to comment.