mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Swift: Simplify the QL a bit further.
This commit is contained in:
@@ -172,20 +172,12 @@ private class Libxml2XxeSink extends XxeSink {
|
||||
Libxml2XxeSink() {
|
||||
exists(Libxml2ParseCall c, Libxml2BadOption opt |
|
||||
this.asExpr() = c.getXml() and
|
||||
lib2xmlOptionLocalTaintStep*(DataFlow::exprNode(opt.getAnAccess()),
|
||||
TaintTracking::localTaintStep*(DataFlow::exprNode(opt.getAnAccess()),
|
||||
DataFlow::exprNode(c.getOptions()))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if taint can flow from `source` to `sink` in one local step,
|
||||
* including bitwise operations, accesses to `.rawValue`, and casts to `Int32`.
|
||||
*/
|
||||
private predicate lib2xmlOptionLocalTaintStep(DataFlow::Node source, DataFlow::Node sink) {
|
||||
TaintTracking::localTaintStep(source, sink)
|
||||
}
|
||||
|
||||
/**
|
||||
* A sink defined in a CSV model.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user