We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7c97f8 commit cc320c5Copy full SHA for cc320c5
go/ql/lib/semmle/go/dataflow/internal/DataFlowPrivate.qll
@@ -232,7 +232,11 @@ class CastNode extends ExprNode {
232
* Holds if `n` should never be skipped over in the `PathGraph` and in path
233
* explanations.
234
*/
235
-predicate neverSkipInPathGraph(Node n) { none() }
+predicate neverSkipInPathGraph(Node n) {
236
+ exists(DataFlow::FunctionModel fm | fm.getAnInputNode(_) = n or fm.getAnOutputNode(_) = n)
237
+ or
238
+ exists(TaintTracking::FunctionModel fm | fm.getAnInputNode(_) = n or fm.getAnOutputNode(_) = n)
239
+}
240
241
class DataFlowExpr = Expr;
242
0 commit comments