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

buffer: do not crash in Debug build #7148

Closed
wants to merge 1 commit into from

Conversation

indutny
Copy link
Member

@indutny indutny commented Jun 4, 2016

Checklist
  • tests and code linting passes
  • a test and/or benchmark is included
  • documentation is changed or added
  • the commit message follows commit guidelines
Affected core subsystem(s)
Description of change

In SetupBufferJS creating Uint32Array requires 4 bytes for
each entry, while the underlying ArrayBuffer was only 1 byte long. Use
Uint8Array instead.

R = @bnoordhuis (cleaning up after your commit 😉 )

In `SetupBufferJS` creating `Uint32Array` requires 4 bytes for
each entry, while the underlying `ArrayBuffer` was only 1 byte long. Use
`Uint8Array` instead.
@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Jun 4, 2016
@addaleax
Copy link
Member

addaleax commented Jun 4, 2016

alternative fix: #7142 ;)

@addaleax addaleax added dont-land-on-v5.x buffer Issues and PRs related to the buffer subsystem. labels Jun 4, 2016
@indutny
Copy link
Member Author

indutny commented Jun 4, 2016

Your fix is better, @addaleax . Closing this.

@indutny indutny closed this Jun 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buffer Issues and PRs related to the buffer subsystem. c++ Issues and PRs that require attention from people who are familiar with C++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants