replace occurence of AssignExprCfgNode for Oj as well

This commit is contained in:
Peter Stöckli
2024-01-30 15:17:37 +01:00
committed by GitHub
parent e87effc18c
commit 3c8bc96ab5

View File

@@ -180,8 +180,7 @@ module UnsafeDeserialization {
* Gets the value being assigned to `Oj.default_options`.
*/
DataFlow::Node getValue() {
result.asExpr() =
this.getArgument(0).asExpr().(CfgNodes::ExprNodes::AssignExprCfgNode).getRhs()
result = this.getArgument(0)
}
}
@@ -266,7 +265,7 @@ module UnsafeDeserialization {
* Gets the value being assigned to `Ox.default_options`.
*/
DataFlow::Node getValue() {
result = this.getArgument(0)
result = this.getArgument(0)
}
}