mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
Includes models-as-data rows, flow sources, and XSS sanitizers. Tests for models-as-data rows not included.
17 lines
563 B
Java
17 lines
563 B
Java
import hudson.FilePath;
|
|
|
|
public class Hudson {
|
|
|
|
private static void sink(Object o) {}
|
|
|
|
public static void test() throws Exception {
|
|
FilePath fp = null;
|
|
sink(FilePath.newInputStreamDenyingSymlinkAsNeeded(null, null, null)); // $hasLocalValueFlow
|
|
sink(FilePath.openInputStream(null, null)); // $hasLocalValueFlow
|
|
sink(fp.read()); // $hasLocalValueFlow
|
|
sink(fp.read(null)); // $hasLocalValueFlow
|
|
sink(fp.readFromOffset(-1)); // $hasLocalValueFlow
|
|
sink(fp.readToString()); // $hasLocalValueFlow
|
|
}
|
|
}
|