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

Method stringBuffer

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

Source from the content-addressed store, hash-verified

13 }
14
15 static void stringBuffer() {
16 String taint = SourceSink.source();
17 StringBuffer sb = new StringBuffer();
18 sb.append("abc");
19 sb.append(taint);
20 sb.append("xyz");
21 String s = sb.toString();
22 SourceSink.sink(s); // taint
23 }
24
25 static void stringBuilder() {
26 String taint = SourceSink.source();

Callers 1

mainMethod · 0.95

Calls 4

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

Tested by

no test coverage detected