-
I'm working on a simple taint analysis problem and I've hit a wall. I could use more eyes on this. I'm using the VS Code CodeQL extension with CodeQL CLI v2.7.3. Context: I'm working with the Exim database from LGTM. Exim has a global variable
Here's the query I'm trying to run:
My query (included below) returns no results and I don't understand why. Running Quick Evaluation on the isSource and isSink predicates turns up the source node ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think you'll get the results you want if you select the right-hand side of the assignment as your source (instead of the assignment itself): override predicate isSource(DataFlow::Node arg) {
exists(Assignment a |
a.getRValue() = arg.asExpr() and
isBigBufferAccess(a.getRValue())
)
} |
Beta Was this translation helpful? Give feedback.
I think you'll get the results you want if you select the right-hand side of the assignment as your source (instead of the assignment itself):