vulndb/internal/audit: improve function names in call stacks

For static calls to methods, call stack entry descriptions would not
include the receiver type in the function name. This CL adds the
reciever type too.

Change-Id: I0a7337106ed780a8dfe8b649f68645314c19d112
Reviewed-on: https://go-review.googlesource.com/c/exp/+/350158
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Tim King <taking@google.com>
Trust: Zvonimir Pavlinovic <zpavlinovic@google.com>
diff --git a/vulndb/internal/audit/detect_callgraph.go b/vulndb/internal/audit/detect_callgraph.go
index 9d22cbe..e67381e 100644
--- a/vulndb/internal/audit/detect_callgraph.go
+++ b/vulndb/internal/audit/detect_callgraph.go
@@ -158,7 +158,7 @@
 	}
 
 	var pos *token.Position
-	desc := fmt.Sprintf("%s.%s(...)", pkgPath(chain.f), chain.f.Name())
+	desc := fmt.Sprintf("%s.%s(...)", pkgPath(chain.f), dbFuncName(chain.f))
 	if chain.call != nil {
 		pos = instrPosition(chain.call)
 		if unresolved(chain.call) {