Skip to content
New issue

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? Sign in to your account

Restrict atom count in deserializer to 1 million #605

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

bnoordhuis
Copy link
Contributor

Otherwise it's too easy to tie up too many resources (cpu, memory) by crafting inputs with a very large atom count (up to 4 billion.)

This may need some finetuning. If the limit proves too restrictive for very large snapshots, we can make it relative to the size of the input.

Otherwise it's too easy to tie up too many resources (cpu, memory) by
crafting inputs with a very large atom count (up to 4 billion.)

This may need some finetuning. If the limit proves too restrictive for
very large snapshots, we can make it relative to the size of the input.
@bnoordhuis bnoordhuis merged commit 966dbfc into quickjs-ng:master Oct 18, 2024
51 checks passed
@bnoordhuis bnoordhuis deleted the so-many-atoms branch October 18, 2024 08:01
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.

2 participants