Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
fs: accept non-32-bit length in writeBuffer#36667
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
Closed
RaisinTen wants to merge 1 commit into nodejs:master from RaisinTen:fs/fix-writeBuffer-length-assertion
Closed
fs: accept non-32-bit length in writeBuffer #36667
RaisinTen wants to merge 1 commit into nodejs:master from RaisinTen:fs/fix-writeBuffer-length-assertion
+2 −2
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Member
RaisinTen commented Dec 28, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Since `length` is `size_t`, it can accept 64-bit integers too. Refs: https://man7.org/linux/man-pages/man2/write.2.htmlFixes: nodejs#36643
addaleax approved these changes Dec 28, 2020
aduh95 approved these changes Dec 29, 2020
Collaborator
nodejs-github-bot commented Dec 29, 2020
Member
Trott commented Dec 29, 2020
Would it be reasonable to add a test? |
Trott approved these changes Dec 29, 2020
Member
targos commented Dec 29, 2020
I think it's not because it requires to write a file > 2GB to the disk. |
lpinca approved these changes Dec 29, 2020
yashLadha approved these changes Dec 30, 2020
Contributor
Commit Queue failed- Loading data for nodejs/node/pull/36667 ✔ Done loading data for nodejs/node/pull/36667 ----------------------------------- PR info ------------------------------------ Title fs: accept non-32-bit length in writeBuffer (#36667) Author Darshan Sen (@RaisinTen) Branch RaisinTen:fs/fix-writeBuffer-length-assertion -> nodejs:master Labels author ready, c++, fs Commits 1 - fs: accept non-32-bit length in writeBuffer Committers 1 - raisinten PR-URL: https://github.com/nodejs/node/pull/36667 Fixes: https://github.com/nodejs/node/issues/36643 Refs: https://man7.org/linux/man-pages/man2/write.2.html Reviewed-By: Anna Henningsen Reviewed-By: Antoine du Hamel Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Yash Ladha ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/36667 Fixes: https://github.com/nodejs/node/issues/36643 Refs: https://man7.org/linux/man-pages/man2/write.2.html Reviewed-By: Anna Henningsen Reviewed-By: Antoine du Hamel Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Yash Ladha -------------------------------------------------------------------------------- ✔ Last GitHub Actions successful ℹ Last Full PR CI on 2020-12-29T01:20:36Z: https://ci.nodejs.org/job/node-test-pull-request/35131/ - Querying data for job/node-test-pull-request/35131/ ✔ Build data downloaded ✔ Last Jenkins CI successful ℹ This PR was created on Mon, 28 Dec 2020 16:34:47 GMT ✔ Approvals: 5 ✔ - Anna Henningsen (@addaleax): https://github.com/nodejs/node/pull/36667#pullrequestreview-559240760 ✔ - Antoine du Hamel (@aduh95): https://github.com/nodejs/node/pull/36667#pullrequestreview-559345231 ✔ - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/36667#pullrequestreview-559360796 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/36667#pullrequestreview-559670637 ✔ - Yash Ladha (@yashLadha): https://github.com/nodejs/node/pull/36667#pullrequestreview-559756174 ✖ This PR needs to wait 14 more hours to land -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/451875945 |
himself65 approved these changes Dec 30, 2020
Contributor
Landed in 1b7ac0c...c380ee6 |
nodejs-github-bot pushed a commit that referenced this pull request Dec 30, 2020
Since `length` is `size_t`, it can accept 64-bit integers too. Refs: https://man7.org/linux/man-pages/man2/write.2.htmlFixes: #36643 PR-URL: #36667 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yash Ladha <[email protected]> Reviewed-By: Zeyu Yang <[email protected]>
danielleadams pushed a commit that referenced this pull request Jan 12, 2021
Since `length` is `size_t`, it can accept 64-bit integers too. Refs: https://man7.org/linux/man-pages/man2/write.2.htmlFixes: #36643 PR-URL: #36667 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yash Ladha <[email protected]> Reviewed-By: Zeyu Yang <[email protected]>
Merged
targos pushed a commit that referenced this pull request May 1, 2021
Since `length` is `size_t`, it can accept 64-bit integers too. Refs: https://man7.org/linux/man-pages/man2/write.2.htmlFixes: #36643 PR-URL: #36667 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yash Ladha <[email protected]> Reviewed-By: Zeyu Yang <[email protected]>
Merged
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. c++Issues and PRs that require attention from people who are familiar with C++. fsIssues and PRs related to the fs subsystem / file system.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since
lengthissize_t, it can accept 64-bit integers too.Refs: https://man7.org/linux/man-pages/man2/write.2.html
Fixes: #36643
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes