Skip to content

Commit b027fdd

Browse files
author
edvraa
committed
Remove redundant check
1 parent 3a9d1f4 commit b027fdd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

csharp/ql/src/Security Features/CWE-502/UnsafeDeserialization.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ where
2525
safeTypeUsage.getNode().asExpr().getParent() = deserializeCall
2626
)
2727
or
28-
sink instanceof ConstructorOrStaticMethodSink and
29-
deserializeCall.getAnArgument() = sink.asExpr()
28+
sink instanceof ConstructorOrStaticMethodSink
3029
)
3130
select deserializeCall,
3231
"Unsafe deserializer is used. Make sure the value being deserialized comes from a trusted source."

0 commit comments

Comments
 (0)