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

Method main

src/test/resources/pta/taint/TwoObjectTaint.java:6–16  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

4
5class TwoObjectTaint {
6 public static void main(String[] args) {
7 List l1 = new List();
8 l1.add(SourceSink.source());
9 List l2 = new List();
10 l2.add(SourceSink.source());
11
12 Iterator i1 = l1.iterator();
13 SourceSink.sink(i1.next());
14 Iterator i2 = l2.iterator();
15 SourceSink.sink(i2.next());
16 }
17}
18
19class List {

Callers

nothing calls this directly

Calls 5

addMethod · 0.95
sourceMethod · 0.95
iteratorMethod · 0.95
sinkMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected