From cb2b2bc334c7448363477531ad13bd8a8ed489e5 Mon Sep 17 00:00:00 2001 From: Joe Farebrother Date: Mon, 27 Mar 2023 16:07:29 +0100 Subject: [PATCH] Add qldoc and remove redundant import --- .../security/dataflow/flowsinks/ExternalLocationSink.qll | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsinks/ExternalLocationSink.qll b/csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsinks/ExternalLocationSink.qll index 0f8b7551b28..511d0ba2ebb 100644 --- a/csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsinks/ExternalLocationSink.qll +++ b/csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsinks/ExternalLocationSink.qll @@ -8,7 +8,6 @@ private import semmle.code.csharp.commons.Loggers private import semmle.code.csharp.frameworks.system.Web private import semmle.code.csharp.frameworks.system.IO private import semmle.code.csharp.dataflow.ExternalFlow -private import semmle.code.csharp.dataflow.DataFlow /** * An external location sink. @@ -120,6 +119,9 @@ private module LocalFileOutputStreamConfig implements DataFlow::ConfigSig { private module LocalFileOutputStreamFlow = DataFlow::Make; +/** + * A write to the local filesystem. + */ class LocalFileOutputSink extends ExternalLocationSink { LocalFileOutputSink() { exists(DataFlow::Node streamSink |