Skip to content

Handle overflow in expand_fast_array - #1429

Merged
bnoordhuis merged 1 commit into
quickjs-ng:masterfrom
bnoordhuis:overflow
Mar 29, 2026
Merged

bnoordhuis merged 1 commit into
quickjs-ng:masterfrom
bnoordhuis:overflow

Conversation

@bnoordhuis

Copy link
Copy Markdown
Contributor

Theoretical because JS arrays are unlikely to grow so large that the size calculation can overflow but let's handle it anyway.

Theoretical because JS arrays are unlikely to grow so large that
the size calculation can overflow but let's handle it anyway.
@bnoordhuis
bnoordhuis merged commit 40e197f into quickjs-ng:master Mar 29, 2026
122 checks passed
@bnoordhuis
bnoordhuis deleted the overflow branch March 29, 2026 15:41
mochaaP pushed a commit to mcha-forks/quickjs that referenced this pull request May 20, 2026
Theoretical because JS arrays are unlikely to grow so large that
the size calculation can overflow but let's handle it anyway.

(cherry picked from commit 40e197f)
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.

3 participants