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

Method main

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

Source from the content-addressed store, hash-verified

1class CharArray {
2
3 public static void main(String[] args) {
4 String s1 = SourceSink.source();
5 char[] chars = s1.toCharArray();
6 String s2 = new String(chars);
7 SourceSink.sink(s2); // taint
8
9 String s3 = new String();
10 SourceSink.sink(s3);
11 }
12}

Callers

nothing calls this directly

Calls 2

sourceMethod · 0.95
sinkMethod · 0.95

Tested by

no test coverage detected