Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ main
Function
main
test/core/test_dlmalloc_partial_2.c:13–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
11
12
void *malloc(size_t size) { return (void *)123; }
13
int main() {
14
void *x = malloc(10);
15
emscripten_outf(
"got %p"
, x);
16
free(0);
17
emscripten_outf(
"freed a fake"
);
18
return 1;
19
}
Callers
nothing calls this directly
Calls
3
malloc
Function · 0.70
free
Function · 0.70
emscripten_outf
Function · 0.50
Tested by
no test coverage detected