@@ -47,9 +47,7 @@ module Gradio {
47
47
*/
48
48
class GradioInputList extends RemoteFlowSource:: Range {
49
49
GradioInputList ( ) {
50
- exists ( API:: CallNode call |
51
- call instanceof GradioInput
52
- and
50
+ exists ( GradioInput call |
53
51
// limit only to lists of parameters given to `inputs`.
54
52
(
55
53
(
@@ -74,9 +72,7 @@ module Gradio {
74
72
*/
75
73
class GradioInputParameter extends RemoteFlowSource:: Range {
76
74
GradioInputParameter ( ) {
77
- exists ( API:: CallNode call |
78
- call instanceof GradioInput
79
- and
75
+ exists ( GradioInput call |
80
76
this = call .getParameter ( 0 , "fn" ) .getParameter ( _) .asSource ( ) and
81
77
// exclude lists of parameters given to `inputs`
82
78
not call .getKeywordParameter ( "inputs" ) .asSink ( ) .asCfgNode ( ) instanceof ListNode and
@@ -92,8 +88,7 @@ module Gradio {
92
88
*/
93
89
class GradioInputDecorator extends RemoteFlowSource:: Range {
94
90
GradioInputDecorator ( ) {
95
- exists ( API:: CallNode call |
96
- call instanceof GradioInput and
91
+ exists ( GradioInput call |
97
92
this = call .getReturn ( ) .getACall ( ) .getParameter ( 0 ) .getParameter ( _) .asSource ( )
98
93
)
99
94
}
@@ -106,9 +101,7 @@ module Gradio {
106
101
*/
107
102
private class ListTaintStep extends TaintTracking:: AdditionalTaintStep {
108
103
override predicate step ( DataFlow:: Node nodeFrom , DataFlow:: Node nodeTo ) {
109
- exists ( API:: CallNode node |
110
- node instanceof GradioInput
111
- and
104
+ exists ( GradioInput node |
112
105
// handle cases where there are multiple arguments passed as a list to `inputs`
113
106
(
114
107
(
0 commit comments