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

Fix horrific memory corruption in process() when called with subarrays #45

Merged
merged 2 commits into from
Dec 8, 2022

Conversation

dhdaines
Copy link
Contributor

@dhdaines dhdaines commented Dec 8, 2022

Javascript APIs are... weird... and not obvious... and dangerous :(

it is not immediately obvious that you must always, always use the
three-argument constructor when creating a typed array from another
ones buffer in case it happens to be a subarray.

this was causing massive heap overruns for maybe obvious reasons
@dhdaines dhdaines merged commit 21dafa1 into master Dec 8, 2022
@dhdaines dhdaines deleted the fix_subarrays branch December 8, 2022 20:30
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