Skip to content
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

fs : update validateOffsetLengthRead in utils.js #32896

Closed
wants to merge 3 commits into from

Conversation

daemon1024
Copy link
Contributor

@daemon1024 daemon1024 commented Apr 17, 2020

Fixes : #32871

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

@nodejs-github-bot nodejs-github-bot added the fs label Apr 17, 2020
@daemon1024
Copy link
Contributor Author

@daemon1024 daemon1024 commented Apr 17, 2020

message: 'The value of "offset" is out of range. It must be >= 0 && <= 4. ' +

'It must be >= 0 && <= 4. Received -1'

'It must be >= 0 && <= 4. Received -1'

'It must be >= 0 && <= 4. Received -1'

Updating these in test/parallel/test-fs-read-type.js accordingly

Copy link
Member

@Himself65 Himself65 left a comment

add a test case for <= ${bufferLength - offset}

@daemon1024 daemon1024 requested a review from Himself65 Apr 17, 2020
Copy link
Member

@juanarbol juanarbol left a comment

LGTM.

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Apr 22, 2020

@puzpuzpuz
Copy link
Member

@puzpuzpuz puzpuzpuz commented Apr 23, 2020

Landed in 1cc1ca4

Thanks for this improvement!

@puzpuzpuz puzpuzpuz closed this Apr 23, 2020
puzpuzpuz added a commit that referenced this issue Apr 23, 2020
PR-URL: #32896
Fixes: #32871
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
BethGriggs pushed a commit that referenced this issue Apr 27, 2020
PR-URL: #32896
Fixes: #32871
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
@BethGriggs BethGriggs mentioned this pull request Apr 27, 2020
BridgeAR added a commit that referenced this issue Apr 28, 2020
PR-URL: #32896
Fixes: #32871
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
@BridgeAR BridgeAR mentioned this pull request Apr 28, 2020
targos added a commit that referenced this issue Apr 30, 2020
PR-URL: #32896
Fixes: #32871
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
targos added a commit that referenced this issue May 13, 2020
PR-URL: #32896
Fixes: #32871
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants