Update cpp/ql/lib/semmle/code/cpp/models/implementations/Pure.qll

Co-authored-by: Simon Friis Vindum <paldepind@github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2025-01-23 13:48:44 +00:00
committed by GitHub
parent 2cdb52cad2
commit fb12847360

View File

@@ -52,7 +52,7 @@ private class PureStrFunction extends AliasFunction, ArrayFunction, TaintFunctio
// If there is taint flow from *input to *output then there is also taint
// flow from input to output.
this.hasTaintFlow(input.getIndirectionInput(), output.getIndirectionOutput()) and
// no need to add taint-flow if we already have dataflow
// No need to add taint flow if we already have data flow.
not this.hasDataFlow(input, output)
}