Skip to content

Comments

src/mjson.c: using alloca in a loop can lead to a stack overflow#63

Open
b4yuan wants to merge 1 commit intocesanta:masterfrom
IVOES:cpp/alloca-in-loop
Open

src/mjson.c: using alloca in a loop can lead to a stack overflow#63
b4yuan wants to merge 1 commit intocesanta:masterfrom
IVOES:cpp/alloca-in-loop

Conversation

@b4yuan
Copy link

@b4yuan b4yuan commented Jun 28, 2023

Replacing alloca with malloc and free to prevent a stack overflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant