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 {
153153 // Serialize
154154 c = this .getSerializeMethod ( ) and
155155 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 )
158158 or
159159 // Deserialize
160160 c = this .getDeserializeMethod ( ) and
161161 preservesValue = false and
162162 source = any ( CallableFlowSourceArg arg | arg .getArgumentIndex ( ) = 0 ) and
163- sink = any ( CallableFlowSinkArg arg | arg . getArgumentIndex ( ) = 1 )
163+ sink instanceof CallableFlowSinkReturn
164164 }
165165 }
166166
You can’t perform that action at this time.
0 commit comments