mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
Java: update System.getProperty model
This commit is contained in:
@@ -97,6 +97,9 @@ public class Test {
|
||||
long l3 = (long)source();
|
||||
sink(String.valueOf(l3)); // $hasTaintFlow
|
||||
|
||||
System.setProperty("testKey", (String)source());
|
||||
sink(System.getProperty("testKey")); // $hasValueFlow
|
||||
|
||||
// java.math
|
||||
long l4 = (long)source();
|
||||
sink(BigDecimal.valueOf(l4)); // $hasTaintFlow
|
||||
|
||||
Reference in New Issue
Block a user