Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6ada6e

Browse files
committed
use sanitizer class in the insecure-randomness query
1 parent a4cd913 commit f6ada6e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

go/ql/lib/semmle/go/security/InsecureRandomness.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ module InsecureRandomness {
2929

3030
/** Holds if `sink` is a sink for this configuration with kind `kind`. */
3131
predicate isSink(Sink sink, string kind) { kind = sink.getKind() }
32+
33+
override predicate isSanitizer(DataFlow::Node node) { node instanceof Sanitizer }
3234
}
3335
}

0 commit comments

Comments
 (0)