|author||Zvonimir Pavlinovic <email@example.com>||Wed Jun 01 18:36:13 2022 -0700|
|committer||Zvonimir Pavlinovic <firstname.lastname@example.org>||Thu Jun 02 17:42:04 2022 +0000|
vulncheck: remove synthetic nodes from call graph This removes ~20% edges for k8s call graph. It also skips call stacks that go through one level of indirection with wrappers. The reason why this change is correct is as follows. Vulnerability db entries never specify ssa wrappers as dbs are unaware of these. The only type of wrappers applicable are the ones that are generated for calls to pointer receivers where the source defines methods only on value receivers. Vulnerability dbs do not care about this distinction nor do the users, so it should be safe to inline the wrappers. This is exactly what callgraph.DeleteSyntheticNodes does. Change-Id: I2d76c0570d95f78ff4a2463ddf7cd95110fff15c Reviewed-on: https://go-review.googlesource.com/c/vuln/+/410054 Reviewed-by: Jonathan Amsterdam <email@example.com> Run-TryBot: Zvonimir Pavlinovic <firstname.lastname@example.org> Reviewed-by: Julie Qiu <email@example.com> TryBot-Result: Gopher Robot <firstname.lastname@example.org>
This repository contains the following:
The code in this repository is under active development and not to be considered stable.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.