mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Update javascript/ql/src/Quality/UnhandledStreamPipe.ql
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
@@ -141,7 +141,7 @@ private predicate streamFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
|
||||
* Tracks the result of a pipe call as it flows through the program.
|
||||
*/
|
||||
private DataFlow::SourceNode destinationStreamRef(DataFlow::TypeTracker t, PipeCall pipe) {
|
||||
t.start() and result = pipe.getALocalSource()
|
||||
t.start() and result = pipe
|
||||
or
|
||||
exists(DataFlow::SourceNode prev |
|
||||
prev = destinationStreamRef(t.continue(), pipe) and
|
||||
|
||||
Reference in New Issue
Block a user