Skip to content

Commit bd99f32

Browse files
committed
Dataflow: Check types on ParamReturnNode.
1 parent abc7cc3 commit bd99f32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2853,7 +2853,9 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
28532853
private import LocalFlowBigStep
28542854

28552855
pragma[nomagic]
2856-
private predicate castingNodeEx(NodeEx node) { node.asNode() instanceof CastingNode }
2856+
private predicate castingNodeEx(NodeEx node) {
2857+
node.asNode() instanceof CastingNode or exists(node.asParamReturnNode())
2858+
}
28572859

28582860
private module Stage3Param implements MkStage<Stage2>::StageParam {
28592861
private module PrevStage = Stage2;

0 commit comments

Comments
 (0)