MCPcopy 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
7int 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
13int main() {
14 return f((int*) alloca(STACK_SIZE+1));

Callers 1

mainFunction · 0.70

Calls 1

randFunction · 0.85

Tested by

no test coverage detected