Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ f
Function
f
test/core/test_safe_stack_alloca.c:7–11 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
#define STACK_SIZE 65536
6
7
int f(int *ptr) {
8
for (int i = 0; i < (STACK_SIZE/sizeof(int) + 1); ++i)
9
ptr[i] = rand();
10
return ptr[0];
11
}
12
13
int main() {
14
return f((int*) alloca(STACK_SIZE+1));
Callers
1
main
Function · 0.70
Calls
1
rand
Function · 0.85
Tested by
no test coverage detected