mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Fix FP from mkdirs call on exact temp directory
This commit is contained in:
@@ -269,4 +269,14 @@ public class Test {
|
||||
tempFile.setReadable(false, false);
|
||||
tempFile.setReadable(true, true);
|
||||
}
|
||||
|
||||
void notVulnerableCreateOnSystemPropertyDir() throws IOException {
|
||||
File tempDir = new File(System.getProperty("java.io.tmpdir"));
|
||||
tempDir.mkdir();
|
||||
}
|
||||
|
||||
void notVulnerableCreateOnSystemPropertyDirs() throws IOException {
|
||||
File tempDir = new File(System.getProperty("java.io.tmpdir"));
|
||||
tempDir.mkdirs();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user