mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
feat:modify source regular matching rules
This commit is contained in:
@@ -60,7 +60,7 @@ module InsecureRandomness {
|
||||
class RandomFnSink extends Sink {
|
||||
RandomFnSink() {
|
||||
exists(DataFlowCallable randomFn |
|
||||
randomFn.getName().regexpMatch("(?i).*(gen(erate)?|salt|make|mk).*")
|
||||
randomFn.getName().regexpMatch("(?i).*(gen(erate)?|make|mk|create).*(nonce|salt|pepper).*")
|
||||
|
|
||||
this.getEnclosingCallable() = randomFn
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user