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

Method stringBuilder

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

Source from the content-addressed store, hash-verified

23 }
24
25 static void stringBuilder() {
26 String taint = SourceSink.source();
27 StringBuilder sb = new StringBuilder();
28 sb.append("abc");
29 sb.append(taint);
30 sb.append("xyz");
31 String s = sb.toString();
32 SourceSink.sink(s); // taint
33 }
34}

Callers 1

mainMethod · 0.95

Calls 4

sourceMethod · 0.95
appendMethod · 0.95
toStringMethod · 0.95
sinkMethod · 0.95

Tested by

no test coverage detected