File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ void sink(Object o) { }
88 Object source () { return null ; }
99
1010 public void test () throws Exception {
11+
1112 Exception e1 = new RuntimeException ((String )source ());
1213 sink ((String )e1 .getMessage ()); // $hasValueFlow
1314
@@ -40,6 +41,5 @@ public void test() throws Exception {
4041 ResultSet rs = (ResultSet )source ();
4142 sink (rs .getString ("" )); // $hasTaintFlow
4243
43-
4444 }
4545}
Original file line number Diff line number Diff line change 1- /** Provides a class to identify Top JDK APIs. */
1+ /** Provides classes and predicates for working with Top JDK APIs. */
22
33import java
44private import semmle.code.java.dataflow.FlowSummary
Original file line number Diff line number Diff line change 11import java
2- import semmle.code.java.dataflow.ExternalFlow
32import TopJdkApis
43
54from string apiName , string message
You can’t perform that action at this time.
0 commit comments