Skip to content

src: allow UTF-16 in generic StringBytes decode call - #22622

Closed
addaleax wants to merge 2 commits into
nodejs:masterfrom
addaleax:fix-utf16
Closed

src: allow UTF-16 in generic StringBytes decode call#22622
addaleax wants to merge 2 commits into
nodejs:masterfrom
addaleax:fix-utf16

Conversation

@addaleax

Copy link
Copy Markdown
Member

This allows removing a number of special cases in other
parts of the code, at least one of which was incorrect
in expecting aligned input when that was not guaranteed.

Fixes: #22358

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

This allows removing a number of special cases in other
parts of the code, at least one of which was incorrect
in expecting aligned input when that was not guaranteed.
Fixes: nodejs#22358
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels Aug 31, 2018
@addaleaxaddaleax added buffer Issues and PRs related to the buffer subsystem. string_decoder Issues and PRs related to the string_decoder subsystem. encoding Issues and PRs related to the TextEncoder and TextDecoder APIs. labels Aug 31, 2018
@addaleax

addaleax commented Aug 31, 2018

Copy link
Copy Markdown
MemberAuthor

@addaleaxaddaleax mentioned this pull request Aug 31, 2018
@addaleaxaddaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Sep 2, 2018
@addaleax

Copy link
Copy Markdown
MemberAuthor

Landed in 71f633a

@addaleaxaddaleax closed this Sep 3, 2018
@addaleax
addaleax deleted the fix-utf16 branch September 3, 2018 20:36
addaleax added a commit that referenced this pull request Sep 3, 2018
This allows removing a number of special cases in other
parts of the code, at least one of which was incorrect
in expecting aligned input when that was not guaranteed.
Fixes: #22358
PR-URL: #22622
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
addaleax added a commit that referenced this pull request Sep 3, 2018
This allows removing a number of special cases in other
parts of the code, at least one of which was incorrect
in expecting aligned input when that was not guaranteed.
Fixes: #22358
PR-URL: #22622
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
targos pushed a commit that referenced this pull request Sep 5, 2018
This allows removing a number of special cases in other
parts of the code, at least one of which was incorrect
in expecting aligned input when that was not guaranteed.
Fixes: #22358
PR-URL: #22622
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
@targostargos mentioned this pull request Sep 5, 2018
targos pushed a commit that referenced this pull request Sep 6, 2018
This allows removing a number of special cases in other
parts of the code, at least one of which was incorrect
in expecting aligned input when that was not guaranteed.
Fixes: #22358
PR-URL: #22622
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
addaleax added a commit to addaleax/node that referenced this pull request Oct 1, 2019
Trott pushed a commit that referenced this pull request Oct 3, 2019
Since 71f633a, this is no longer necessary.
Refs: #22622Fixes: #29793
PR-URL: #29795
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
BridgeAR pushed a commit that referenced this pull request Oct 9, 2019
Since 71f633a, this is no longer necessary.
Refs: #22622Fixes: #29793
PR-URL: #29795
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.bufferIssues and PRs related to the buffer subsystem.c++Issues and PRs that require attention from people who are familiar with C++.encodingIssues and PRs related to the TextEncoder and TextDecoder APIs.lib / srcIssues and PRs related to general changes in the lib or src directory.string_decoderIssues and PRs related to the string_decoder subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segfault on v10.7.0

3 participants

@addaleax@nodejs-github-bot@tniessen