Java: update System.getProperty model

This commit is contained in:
Jami Cogswell
2023-01-11 12:04:22 -05:00
parent 2a99af0e6d
commit 0c7ffb0554
2 changed files with 7 additions and 1 deletions

View File

@@ -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