Skip to content

buffer: fix creating from zero-length ArrayBuffer - #7176

Closed
RReverser wants to merge 1 commit into
nodejs:masterfrom
RReverser:buffer-from-empty
Closed

buffer: fix creating from zero-length ArrayBuffer#7176
RReverser wants to merge 1 commit into
nodejs:masterfrom
RReverser:buffer-from-empty

Conversation

@RReverser

@RReverserRReverser commented Jun 6, 2016

Copy link
Copy Markdown
Member
Checklist
  • tests and code linting passes
  • a test and/or benchmark is included
  • the commit message follows commit guidelines
Affected core subsystem(s)

buffer

Description of change

Fixes regression introduced in 85ab4a5 where creating a new Buffer from an empty ArrayBuffer would fail.

Initially found in #6893.

cc @trevnorris@addaleax@ChALkeR

Fixes regression where creating a new Buffer from an
empty ArrayBuffer would fail.
Ref: 85ab4a5
@nodejs-github-botnodejs-github-bot added the buffer Issues and PRs related to the buffer subsystem. label Jun 6, 2016
@addaleax

Copy link
Copy Markdown
Member

@cjihrig

Copy link
Copy Markdown
Contributor

LGTM

3 similar comments
@jasnell

Copy link
Copy Markdown
Member

LGTM

@ChALkeR

Copy link
Copy Markdown
Member

LGTM

@ronkorving

Copy link
Copy Markdown
Contributor

LGTM

@addaleax

Copy link
Copy Markdown
Member

Landed in 0e9e149, thanks!

addaleax pushed a commit that referenced this pull request Jun 13, 2016
Fixes regression where creating a new Buffer from an
empty ArrayBuffer would fail.
Ref: 85ab4a5
PR-URL: #7176
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Ron Korving <ron@ronkorving.nl>
@evanlucas

Copy link
Copy Markdown
Contributor

This is not landing cleanly on v6.x. Going to hold off for now. @RReverser interested in opening a backport PR targeting the v6.x branch?

@RReverser

Copy link
Copy Markdown
MemberAuthor

@evanlucas Sure. Can I read about what are the requirements to such PR? (description / title / whatever / ...) As far as I understand, it should be basically just a rebase?

@RReverserRReverser mentioned this pull request Jun 16, 2016
2 tasks
@evanlucas

Copy link
Copy Markdown
Contributor

@RReverser it is really just a rebase. Making keep the same title in the PR, but add (v6.x) to the title. Thanks!

evanlucas pushed a commit that referenced this pull request Jul 18, 2016
Fixes regression where creating a new Buffer from an
empty ArrayBuffer would fail.
Ref: 85ab4a5
PR-URL: #7176
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Ron Korving <ron@ronkorving.nl>
@evanlucasevanlucas mentioned this pull request Jul 19, 2016
evanlucas pushed a commit that referenced this pull request Jul 20, 2016
Fixes regression where creating a new Buffer from an
empty ArrayBuffer would fail.
Ref: 85ab4a5
PR-URL: #7176
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Ron Korving <ron@ronkorving.nl>
evanlucas added a commit that referenced this pull request Jul 21, 2016
Notable changes:
* **buffer**:
* Improve performance of Buffer.from(str, 'hex') and Buffer#write(str, 'hex'). (Christopher Jeffrey) #7602
* Fix creating from zero-length ArrayBuffer. (Ingvar Stepanyan) #7176
* **deps**: Upgrade to V8 5.0.71.xx. (Ben Noordhuis) #7531
* **repl**: Fix issue with function redeclaration. (Prince J Wesley) #7794
* **util**: Fix inspecting of boxed symbols. (Anna Henningsen) #7641
PR-URL: #7782
evanlucas added a commit that referenced this pull request Jul 21, 2016
Notable changes:
* **buffer**:
* Improve performance of Buffer.from(str, 'hex') and Buffer#write(str, 'hex'). (Christopher Jeffrey) #7602
* Fix creating from zero-length ArrayBuffer. (Ingvar Stepanyan) #7176
* **deps**:
* Upgrade to V8 5.0.71.xx. (Ben Noordhuis) #7531
* Backport V8 instanceof bugfix (Franziska Hinkelmann) #7638
* **repl**: Fix issue with function redeclaration. (Prince J Wesley) #7794
* **util**: Fix inspecting of boxed symbols. (Anna Henningsen) #7641
PR-URL: #7782
evanlucas added a commit that referenced this pull request Jul 21, 2016
Notable changes:
* **buffer**:
* Improve performance of Buffer.from(str, 'hex') and Buffer#write(str, 'hex'). (Christopher Jeffrey) #7602
* Fix creating from zero-length ArrayBuffer. (Ingvar Stepanyan) #7176
* **deps**:
* Upgrade to V8 5.0.71.xx. (Ben Noordhuis) #7531
* Backport V8 instanceof bugfix (Franziska Hinkelmann) #7638
* **repl**: Fix issue with function redeclaration. (Prince J Wesley) #7794
* **util**: Fix inspecting of boxed symbols. (Anna Henningsen) #7641
PR-URL: #7782
lukesampson pushed a commit to ScoopInstaller/Scoop that referenced this pull request Jul 24, 2016
### Notable changes
* **buffer**:
* Improve performance of Buffer.from(str, 'hex') and Buffer#write(str, 'hex'). (Christopher Jeffrey) [#7602](nodejs/node#7602)
* Fix creating from zero-length ArrayBuffer. (Ingvar Stepanyan) [#7176](nodejs/node#7176)
* **deps**:
* Upgrade to V8 5.0.71.xx. (Ben Noordhuis) [#7531](nodejs/node#7531)
* Backport V8 instanceof bugfix (Franziska Hinkelmann) [#7638](nodejs/node#7638)
* **repl**: Fix issue with function redeclaration. (Prince J Wesley) [#7794](nodejs/node#7794)
* **util**: Fix inspecting of boxed symbols. (Anna Henningsen) [#7641](nodejs/node#7641)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bufferIssues and PRs related to the buffer subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@RReverser@addaleax@cjihrig@jasnell@ChALkeR@ronkorving@evanlucas@nodejs-github-bot