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

Method stringAdd

src/test/resources/pta/taint/StringAppend.java:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 }
8
9 static void stringAdd() {
10 String taint = SourceSink.source();
11 String s = "abc" + taint + "xyz";
12 SourceSink.sink(s); // taint
13 }
14
15 static void stringBuffer() {
16 String taint = SourceSink.source();

Callers 1

mainMethod · 0.95

Calls 2

sourceMethod · 0.95
sinkMethod · 0.95

Tested by

no test coverage detected