We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 720285f commit db49d95Copy full SHA for db49d95
cpp/ql/src/Security/CWE/CWE-129/ImproperArrayIndexValidation.ql
@@ -68,7 +68,7 @@ predicate predictableInstruction(Instruction instr) {
68
module ImproperArrayIndexValidationConfig implements DataFlow::ConfigSig {
69
predicate isSource(DataFlow::Node source) {
70
isFlowSource(source, _) and
71
- not source.asExpr().getFile().getRelativePath().regexpMatch("/tests?/")
+ not source.getLocation().getFile().getRelativePath().regexpMatch("(.*/)?tests?/.*")
72
}
73
74
predicate isBarrier(DataFlow::Node node) {
0 commit comments