From b1ae3bfdb2fcca0c5c87ab73dd617091d1c99a4f Mon Sep 17 00:00:00 2001 From: Rasmus Lerchedahl Petersen Date: Wed, 28 Sep 2022 11:46:26 +0200 Subject: [PATCH] Python: less eager tracking of flow --- python/ql/lib/semmle/python/frameworks/Flask.qll | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/ql/lib/semmle/python/frameworks/Flask.qll b/python/ql/lib/semmle/python/frameworks/Flask.qll index 1cf7d2573f8..13715199513 100644 --- a/python/ql/lib/semmle/python/frameworks/Flask.qll +++ b/python/ql/lib/semmle/python/frameworks/Flask.qll @@ -421,9 +421,7 @@ module Flask { /** An `FileStorage` instance that originates from a flask request. */ private class FlaskRequestFileStorageInstances extends Werkzeug::FileStorage::InstanceSource { - FlaskRequestFileStorageInstances() { - this = requestFileStorage().getAValueReachableFromSource() - } + FlaskRequestFileStorageInstances() { this = requestFileStorage().asSource() } } /** An `Headers` instance that originates from a flask request. */