Skip to content

Commit 3c8bc96

Browse files
authored
replace occurence of AssignExprCfgNode for Oj as well
1 parent e87effc commit 3c8bc96

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ruby/ql/lib/codeql/ruby/security/UnsafeDeserializationCustomizations.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ module UnsafeDeserialization {
180180
* Gets the value being assigned to `Oj.default_options`.
181181
*/
182182
DataFlow::Node getValue() {
183-
result.asExpr() =
184-
this.getArgument(0).asExpr().(CfgNodes::ExprNodes::AssignExprCfgNode).getRhs()
183+
result = this.getArgument(0)
185184
}
186185
}
187186

@@ -266,7 +265,7 @@ module UnsafeDeserialization {
266265
* Gets the value being assigned to `Ox.default_options`.
267266
*/
268267
DataFlow::Node getValue() {
269-
result = this.getArgument(0)
268+
result = this.getArgument(0)
270269
}
271270
}
272271

0 commit comments

Comments
 (0)