chains-project / GoSurf

Static analyzer to find locations to hide malicious code in Go
2 stars 1 forks source link

Interface analyzer #10

Open vivi365 opened 2 months ago

vivi365 commented 2 months ago

interfaceMethods map in the interface analyzer seems to not be used for anything

// Check if the function is defined on an interface type
if _, ok := x.Type.Results.List[0].Type.(*ast.InterfaceType); ok {
    interfaceMethods[x.Name.Name] = struct{}{}
vivi365 commented 2 months ago