From c95295aa8129322d8930642895010ef51627698c Mon Sep 17 00:00:00 2001 From: edvraa <80588099+edvraa@users.noreply.github.com> Date: Tue, 11 May 2021 13:01:26 +0300 Subject: [PATCH] Simplify get int --- ql/src/experimental/CWE-326/InsufficientKeySize.ql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ql/src/experimental/CWE-326/InsufficientKeySize.ql b/ql/src/experimental/CWE-326/InsufficientKeySize.ql index f5a4bc969a2..ab5637f2914 100644 --- a/ql/src/experimental/CWE-326/InsufficientKeySize.ql +++ b/ql/src/experimental/CWE-326/InsufficientKeySize.ql @@ -17,9 +17,7 @@ import DataFlow::PathGraph class RsaKeyTrackingConfiguration extends DataFlow::Configuration { RsaKeyTrackingConfiguration() { this = "RsaKeyTrackingConfiguration" } - override predicate isSource(DataFlow::Node source) { - source.asExpr().(ValueExpr).getIntValue() < 2048 - } + override predicate isSource(DataFlow::Node source) { source.getIntValue() < 2048 } override predicate isSink(DataFlow::Node sink) { exists(DataFlow::CallNode c |