Skip to content

Commit bafcce1

Browse files
JLLeitschuhsmowton
andauthored
Apply suggestions from code review
Co-authored-by: Chris Smowton <[email protected]>
1 parent 49a7367 commit bafcce1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java/ql/src/Security/CWE/CWE-200/TempDirLocalInformationDisclosure.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private class TempDirSystemGetPropertyToCreateConfig extends TaintTracking::Conf
121121

122122
override predicate isSink(DataFlow::Node sink) {
123123
sink instanceof FileCreationSink and
124-
exists(TempDirSystemGetPropertyDirectlyToMkdirConfig config | not config.hasFlowTo(sink))
124+
not any(TempDirSystemGetPropertyDirectlyToMkdirConfig config).hasFlowTo(sink)
125125
}
126126

127127
override predicate isSanitizer(DataFlow::Node sanitizer) {

java/ql/src/Security/CWE/CWE-200/TempDirUtils.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class MethodFileCreateTempFile extends Method {
4444
}
4545

4646
/**
47-
* Holds if `expDest` is some constructor call `new java.io.File(x)` and `expSource` is `x`.
47+
* Holds if `expDest` is some constructor call `new java.io.File(expSource)`, where the specific `File` constructor being used has `paramCount` parameters.
4848
*/
4949
predicate isFileConstructorArgument(Expr expSource, Expr exprDest, int paramCount) {
5050
exists(ConstructorCall construtorCall |

0 commit comments

Comments
 (0)