Skip to content

Commit 7cbbd6c

Browse files
author
edvraa
committed
Simplify query
1 parent 8bb3be2 commit 7cbbd6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ where
2121
SafeConstructorTrackingConfig constructorTracking
2222
|
2323
constructorTracking.hasFlowPath(constructor, usage) and
24-
usage.getNode().asExpr().getParent() = sink.asExpr().getParent()
24+
usage.getNode().asExpr().getParent() = deserializeCall
2525
)
2626
or
2727
exists(ConstructorOrStaticMethodSink sink2 | deserializeCall.getAnArgument() = sink2.asExpr())

0 commit comments

Comments
 (0)