Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LFYSec/MScan
/ main
Method
main
src/test/resources/pta/contextsensitivity/MustUseHeap.java:2–8 ·
view source on GitHub ↗
(String[] args)
Source
from the content-addressed store, hash-verified
1
class
MustUseHeap {
2
public
static
void
main(String[] args) {
3
A a1 = createA();
4
a1.f =
new
B();
5
A a2 = createA();
6
a2.f =
new
B();
7
B result = a1.f;
8
}
9
10
public
static
A createA() {
11
return
new
A();
Callers
nothing calls this directly
Calls
1
createA
Method · 0.95
Tested by
no test coverage detected