File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
csharp/ql/lib/semmle/code/csharp/frameworks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,14 +153,14 @@ module JsonNET {
153
153
// Serialize
154
154
c = this .getSerializeMethod ( ) and
155
155
preservesValue = false and
156
- source = any ( CallableFlowSourceArg arg | arg .getArgumentIndex ( ) = 0 ) and
157
- sink = any ( CallableFlowSinkArg arg | arg .getArgumentIndex ( ) = 1 )
156
+ source = any ( CallableFlowSourceArg arg | arg .getArgumentIndex ( ) = 1 ) and
157
+ sink = any ( CallableFlowSinkArg arg | arg .getArgumentIndex ( ) = 0 )
158
158
or
159
159
// Deserialize
160
160
c = this .getDeserializeMethod ( ) and
161
161
preservesValue = false and
162
162
source = any ( CallableFlowSourceArg arg | arg .getArgumentIndex ( ) = 0 ) and
163
- sink = any ( CallableFlowSinkArg arg | arg . getArgumentIndex ( ) = 1 )
163
+ sink instanceof CallableFlowSinkReturn
164
164
}
165
165
}
166
166
You can’t perform that action at this time.
0 commit comments