Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
main
Method · 0.95
Calls
2
source
Method · 0.95
sink
Method · 0.95
Tested by
no test coverage detected