File tree Expand file tree Collapse file tree
python/ql/test/experimental/dataflow/coverage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,8 +32,10 @@ class ArgumentRoutingConfig extends DataFlow::Configuration {
3232 }
3333
3434 /**
35- * This prevents the argument from one call to reach the sink
36- * via a different call, by flowing to an argument of that.
35+ * We want to be able to use `arg` in a sequence of calls such as `func(kw=arg); ... ; func(arg)`.
36+ * Use-use flow lets the argument to the first call reach the sink inside the second call,
37+ * making it seem like we handle all cases even if we only handle the last one.
38+ * We make the test honest by preventing flow into source nodes.
3739 */
3840 override predicate isBarrierIn ( DataFlow:: Node node ) { isSource ( node ) }
3941}
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ class ArgumentRoutingConfig extends DataFlow::Configuration {
2424 }
2525
2626 /**
27- * This prevents the argument from one call to reach the sink
28- * via a different call, by flowing to an argument of that.
27+ * We want to be able to use `arg` in a sequence of calls such as `func(kw=arg); ... ; func(arg)`.
28+ * Use-use flow lets the argument to the first call reach the sink inside the second call,
29+ * making it seem like we handle all cases even if we only handle the last one.
30+ * We make the test honest by preventing flow into source nodes.
2931 */
3032 override predicate isBarrierIn ( DataFlow:: Node node ) { isSource ( node ) }
3133}
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ class ArgumentRoutingConfig extends DataFlow::Configuration {
2424 }
2525
2626 /**
27- * This prevents the argument from one call to reach the sink
28- * via a different call, by flowing to an argument of that.
27+ * We want to be able to use `arg` in a sequence of calls such as `func(kw=arg); ... ; func(arg)`.
28+ * Use-use flow lets the argument to the first call reach the sink inside the second call,
29+ * making it seem like we handle all cases even if we only handle the last one.
30+ * We make the test honest by preventing flow into source nodes.
2931 */
3032 override predicate isBarrierIn ( DataFlow:: Node node ) { isSource ( node ) }
3133}
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ class ArgumentRoutingConfig extends DataFlow::Configuration {
2424 }
2525
2626 /**
27- * This prevents the argument from one call to reach the sink
28- * via a different call, by flowing to an argument of that.
27+ * We want to be able to use `arg` in a sequence of calls such as `func(kw=arg); ... ; func(arg)`.
28+ * Use-use flow lets the argument to the first call reach the sink inside the second call,
29+ * making it seem like we handle all cases even if we only handle the last one.
30+ * We make the test honest by preventing flow into source nodes.
2931 */
3032 override predicate isBarrierIn ( DataFlow:: Node node ) { isSource ( node ) }
3133}
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ class ArgumentRoutingConfig extends DataFlow::Configuration {
2424 }
2525
2626 /**
27- * This prevents the argument from one call to reach the sink
28- * via a different call, by flowing to an argument of that.
27+ * We want to be able to use `arg` in a sequence of calls such as `func(kw=arg); ... ; func(arg)`.
28+ * Use-use flow lets the argument to the first call reach the sink inside the second call,
29+ * making it seem like we handle all cases even if we only handle the last one.
30+ * We make the test honest by preventing flow into source nodes.
2931 */
3032 override predicate isBarrierIn ( DataFlow:: Node node ) { isSource ( node ) }
3133}
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ class ArgumentRoutingConfig extends DataFlow::Configuration {
2424 }
2525
2626 /**
27- * This prevents the argument from one call to reach the sink
28- * via a different call, by flowing to an argument of that.
27+ * We want to be able to use `arg` in a sequence of calls such as `func(kw=arg); ... ; func(arg)`.
28+ * Use-use flow lets the argument to the first call reach the sink inside the second call,
29+ * making it seem like we handle all cases even if we only handle the last one.
30+ * We make the test honest by preventing flow into source nodes.
2931 */
3032 override predicate isBarrierIn ( DataFlow:: Node node ) { isSource ( node ) }
3133}
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ class ArgumentRoutingConfig extends DataFlow::Configuration {
2424 }
2525
2626 /**
27- * This prevents the argument from one call to reach the sink
28- * via a different call, by flowing to an argument of that.
27+ * We want to be able to use `arg` in a sequence of calls such as `func(kw=arg); ... ; func(arg)`.
28+ * Use-use flow lets the argument to the first call reach the sink inside the second call,
29+ * making it seem like we handle all cases even if we only handle the last one.
30+ * We make the test honest by preventing flow into source nodes.
2931 */
3032 override predicate isBarrierIn ( DataFlow:: Node node ) { isSource ( node ) }
3133}
You can’t perform that action at this time.
0 commit comments