From b9cede8b7b46b12a518a0d2943e2b5e39be27bbc Mon Sep 17 00:00:00 2001 From: Michael Nebel Date: Wed, 2 Oct 2024 14:39:27 +0200 Subject: [PATCH] Shared: Only use heuristic summary flow in case there is no content based flow. --- .../codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll b/shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll index f56c1b8dfff0a..8d4bb4cae5a0b 100644 --- a/shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll +++ b/shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll @@ -881,7 +881,7 @@ module MakeModelGenerator< string captureMixedFlow(DataFlowSummaryTargetApi api, boolean lift) { result = ContentSensitive::captureFlow(api, lift) or - not exists(ContentSensitive::captureFlow(api, lift)) and + not exists(ContentSensitive::captureFlow(api, _)) and result = captureFlow(api) and lift = true }