mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
update stream pipe
This commit is contained in:
@@ -25,4 +25,30 @@ predicate readablePipeAdditionalTaintStep(DataFlow::Node pred, DataFlow::Node su
|
||||
pred = cn.getParameter(0).asSink() and
|
||||
succ = cn.getReturn().getMember("pipe").getParameter(0).asSink()
|
||||
)
|
||||
or
|
||||
// this step connect the a pipe parameter to the next parameter
|
||||
exists(API::Node cn, int i |
|
||||
i in [0 .. 10] and
|
||||
cn =
|
||||
[
|
||||
API::moduleImport("stream/promises").getMember("pipeline"),
|
||||
API::moduleImport("stream").getMember("pipeline")
|
||||
]
|
||||
|
|
||||
pred = cn.getParameter(i).asSink() and
|
||||
succ = cn.getParameter(i + 1).asSink()
|
||||
)
|
||||
or
|
||||
// this step connect the first pipe parameter to the next parameter
|
||||
exists(API::Node cn, int i |
|
||||
i in [1 .. 10] and
|
||||
cn =
|
||||
[
|
||||
API::moduleImport("stream/promises").getMember("pipeline"),
|
||||
API::moduleImport("stream").getMember("pipeline")
|
||||
]
|
||||
|
|
||||
pred = cn.getParameter(0).asSink() and
|
||||
succ = cn.getParameter(i).asSink()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user