Skip to content

Commit

Permalink
Merge pull request #1781 from kevinbackhouse/filter_xmpsdk
Browse files Browse the repository at this point in the history
Ignore results in the xmpsdk directory
  • Loading branch information
kevinbackhouse authored Jul 16, 2021
2 parents 0208b50 + 8c80d06 commit 8f126c0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,7 @@ where
not index_last_with_check(_, call) and
// Ignore accesses like this: `vsnprintf(&buffer[0], buffer.size(), format, args)`
// That's pointer arithmetic, not a deref, so it's usually a false positive.
not exists(AddressOfExpr addrExpr | addrExpr.getOperand() = call)
not exists(AddressOfExpr addrExpr | addrExpr.getOperand() = call) and
// Ignore results in the xmpsdk directory.
not call.getLocation().getFile().getRelativePath().matches("xmpsdk/%")
select call, "Unsafe use of operator[]. Use the at() method instead."

0 comments on commit 8f126c0

Please sign in to comment.