Skip to content

Commit c95295a

Browse files
edvraasmowton
authored andcommitted
Simplify get int
1 parent c9c22fd commit c95295a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ql/src/experimental/CWE-326/InsufficientKeySize.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ import DataFlow::PathGraph
1717
class RsaKeyTrackingConfiguration extends DataFlow::Configuration {
1818
RsaKeyTrackingConfiguration() { this = "RsaKeyTrackingConfiguration" }
1919

20-
override predicate isSource(DataFlow::Node source) {
21-
source.asExpr().(ValueExpr).getIntValue() < 2048
22-
}
20+
override predicate isSource(DataFlow::Node source) { source.getIntValue() < 2048 }
2321

2422
override predicate isSink(DataFlow::Node sink) {
2523
exists(DataFlow::CallNode c |

0 commit comments

Comments
 (0)