Skip to content

Commit 7fe3ccd

Browse files
committed
C++: CgiXss
1 parent b15a644 commit 7fe3ccd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cpp/ql/src/Security/CWE/CWE-079/CgiXss.ql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ module Config implements DataFlow::ConfigSig {
4040
node.asCertainDefinition().getUnspecifiedType() instanceof ArithmeticType
4141
}
4242

43-
predicate observeDiffInformedIncrementalMode() {
44-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 5 selects source.asIndirectExpr (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-079/CgiXss.ql@51:3:51:7)
43+
predicate observeDiffInformedIncrementalMode() { any() }
44+
45+
Location getASelectedSourceLocation(DataFlow::Node source) {
46+
exists(QueryString query | result = query.getLocation() | query = source.asIndirectExpr())
4547
}
4648
}
4749

0 commit comments

Comments
 (0)