Skip to content

Conversation

@dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Sep 10, 2021

Fixes #2018 where it was discovered that Array#flat erroneously used the backing buffer's byteLength instead of its length, leading to an OOB memory.copy into subsequent data.

In the concrete repro, the array header was overwritten with zeroes, leading to the reported effect when the backing buffer is larger than the length, say after a resize triggered by push.

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file
@dcodeIO dcodeIO merged commit 5dce4e4 into main Sep 10, 2021
@dcodeIO dcodeIO deleted the issue-2018 branch September 14, 2021 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants