From 2f163b070a595ebdaae24a7190fd10c90e6ab458 Mon Sep 17 00:00:00 2001 From: Josh Brown Date: Thu, 28 Dec 2023 10:08:50 -0800 Subject: [PATCH] MethodCallInsecureFileCreation isSource --- .../java/security/TempDirLocalInformationDisclosureQuery.qll | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/ql/lib/semmle/code/java/security/TempDirLocalInformationDisclosureQuery.qll b/java/ql/lib/semmle/code/java/security/TempDirLocalInformationDisclosureQuery.qll index 843db3b5934..2fc8d1e1be5 100644 --- a/java/ql/lib/semmle/code/java/security/TempDirLocalInformationDisclosureQuery.qll +++ b/java/ql/lib/semmle/code/java/security/TempDirLocalInformationDisclosureQuery.qll @@ -212,6 +212,9 @@ abstract class MethodCallInsecureFileCreation extends MethodCall { * Gets the dataflow node representing the file system entity created. */ DataFlow::Node getNode() { result.asExpr() = this } + + /** Holds if this node is a source. */ + predicate isSource() { any() } } /** DEPRECATED: Alias for `MethodCallInsecureFileCreation`. */