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

Method main

src/test/resources/pta/taint/ArrayTaint.java:2–8  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

1class ArrayTaint {
2 public static void main(String[] args) {
3 String[] arr = new String[10];
4 for (int i = 0; i < arr.length; i++) {
5 arr[i] = SourceSink.source();
6 }
7 SourceSink.sink(join(",", arr));
8 }
9
10 public static String join(String delim, String[] strings) {]
11 if (strings == null || strings.length == 0) {

Callers

nothing calls this directly

Calls 3

sourceMethod · 0.95
sinkMethod · 0.95
joinMethod · 0.95

Tested by

no test coverage detected