Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
alloca() is not considered good practice, since it has numerous issues:
A better solution would be to create a stack allocator that can easily have memory gotten from it for scratch allocations. Such a solution would:
There was already a previous crash that occurred due to alloca being used in json parsing. A stack allocator could easily handle 'out of space' by allocating a new heap to use if need be.
The text was updated successfully, but these errors were encountered:
No branches or pull requests