mirror of
https://github.com/securego/gosec.git
synced 2025-07-13 01:00:25 +02:00
Fix the call list info to handle selector expressions
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
committed by
Cosmin Cojocar
parent
cf2590442c
commit
7da9f46445
@ -234,6 +234,23 @@ package main
|
||||
func dummy(){}
|
||||
`}, 0, gosec.NewConfig()}, {[]string{`
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
)
|
||||
|
||||
type a struct {
|
||||
buf *bytes.Buffer
|
||||
}
|
||||
|
||||
func main() {
|
||||
a := &a{
|
||||
buf: new(bytes.Buffer),
|
||||
}
|
||||
a.buf.Write([]byte{0})
|
||||
}
|
||||
`}, 0, gosec.NewConfig()}, {[]string{`
|
||||
package main
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
Reference in New Issue
Block a user