FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fs: validate encoding to binding.writeString() by cjihrig · Pull Request #38183 · nodejs/node · GitHub

/ node Public

fs: validate encoding to binding.writeString() - #38183

Merged
cjihrig merged 1 commit into
nodejs:masterfrom
cjihrig:encode
Apr 12, 2021
Merged

fs: validate encoding to binding.writeString()#38183
cjihrig merged 1 commit into
nodejs:masterfrom
cjihrig:encode

Conversation

cjihrig commented Apr 10, 2021
edited by aduh95
Loading

Copy link
Copy Markdown
Contributor

The binding layer performs some validation of the encoding and data passed to WriteString(). This commit adds similar validation to the JS layer for better error handling.

Fixes: #38168 (I believe this issue was closed prematurely)

nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Apr 10, 2021

Copy link
Copy Markdown
Collaborator

RaisinTen added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Apr 10, 2021

RaisinTen commented Apr 10, 2021
edited
Loading

Copy link
Copy Markdown
Member

nit: Refs -> Fixes in the commit message
(could be addressed while landing)

nodejs-github-bot commented Apr 11, 2021
edited by cjihrig
Loading

Copy link
Copy Markdown
Collaborator

The binding layer performs some validation of the encoding and
data passed to WriteString(). This commit adds similar validation
to the JS layer for better error handling.

PR-URL: nodejs#38183
Fixes: nodejs#38168
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"fs.writeSync" results in an abort

7 participants


Back | FazBrowse Home | New Git URL