Uh oh!
There was an error while loading. Please reload this page.
[v8.x] src: fix fs.write() externalized string handling - #22731
Conversation
addaleax
commented
Sep 6, 2018
MylesBorins
commented
Sep 6, 2018
@addaleax should this be included in the 8.12.0 release or is it ok to wait until 8.12.1? |
jasnell
commented
Sep 6, 2018
addaleax
commented
Sep 6, 2018
@MylesBorins It’s hard to tell – I’d be in favour of including it. It’s been in @jasnell The tests added here do check the broken code path in |
jasnell
commented
Sep 6, 2018
As long as there is appropriate coverage for this particular piece then it should be fine. |
trivikr
commented
Sep 15, 2018
Resume build: https://ci.nodejs.org/job/node-test-pull-request/17206/ |
MylesBorins
commented
Sep 25, 2018
MylesBorins
commented
Sep 26, 2018
This PR seems to be making windows completely fail, any idea what's up? |
richardlau
commented
Sep 26, 2018
It's some sort of compilation failure, e.g. https://ci.nodejs.org/job/node-compile-windows/21107/label=win-vs2015/console |
richardlau
commented
Sep 26, 2018
src\string_bytes.cc(341): Among the search results for |
BethGriggs
commented
Oct 2, 2018
@addaleax are you able to take a look? Thanks |
Build with `-DNOMINMAX` to stop `<windows.h>` from defining macros that conflict with `std::min()` and `std::max()`. PR-URL: nodejs#18216 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
* Respect `encoding` argument when the string is externalized. * Copy the string when the write request can outlive the externalized string. This commit removes `StringBytes::GetExternalParts()` because it is fundamentally broken. Fixes: nodejs#18146Fixes: nodejs#22728 PR-URL: nodejs#18216
addaleax
commented
Oct 2, 2018
@BethGriggs Thanks for the ping! |
Build with `-DNOMINMAX` to stop `<windows.h>` from defining macros that conflict with `std::min()` and `std::max()`. Backport-PR-URL: #22731 PR-URL: #18216 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> PR-URL: #22731
* Respect `encoding` argument when the string is externalized. * Copy the string when the write request can outlive the externalized string. This commit removes `StringBytes::GetExternalParts()` because it is fundamentally broken. Fixes: #18146Fixes: #22728 Backport-PR-URL: #22731 PR-URL: #18216 Reviewed-By: James M Snell <jasnell@gmail.com>
BethGriggs
commented
Oct 16, 2018
Landed in |
Backport #18216
The merge conflicts in
node_file.ccwere non-trivial, so the changes there deserve to be treated like original content during review.