MCPcopy Create free account
hub / github.com/LFYSec/MScan / main

Method main

src/test/resources/pta/taint/TaintInList.java:3–13  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

1class TaintInList {
2
3 public static void main(String[] args) {
4 StringList l1 = new StringList();
5 l1.add(SourceSink.source());
6 String s1 = l1.get(0);
7 SourceSink.sink(s1);
8
9 StringList l2 = new StringList();
10 l2.add(new String());
11 String s2 = l2.get(0);
12 SourceSink.sink(s2);
13 }
14}
15
16class StringList {

Callers

nothing calls this directly

Calls 4

sourceMethod · 0.95
sinkMethod · 0.95
addMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected