C++: Fix unbound variables in PrivateCleartextWrite.qll.

This commit is contained in:
Geoffrey White
2021-10-19 15:01:32 +01:00
parent 493a37ba5e
commit 38257a58f0

View File

@@ -52,11 +52,8 @@ module PrivateCleartextWrite {
class WriteSink extends Sink {
WriteSink() {
exists(FileWrite f, BufferWrite b |
this.asExpr() = f.getASource()
or
this.asExpr() = b.getAChild()
)
this.asExpr() = any(FileWrite f).getASource() or
this.asExpr() = any(BufferWrite b).getAChild()
}
}
}