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

dgram: fix abort on bad args #28135

Merged
merged 1 commit into from
Jun 10, 2019
Merged

dgram: fix abort on bad args #28135

merged 1 commit into from
Jun 10, 2019

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Jun 8, 2019

This commit fixes a C++ abort for connected dgram sockets by improving input validation in the JS layer.

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

@nodejs-github-bot
Copy link
Collaborator

Sadly, an error occurred when I tried to trigger a build. :(

@nodejs-github-bot nodejs-github-bot added the dgram Issues and PRs related to the dgram subsystem / UDP. label Jun 8, 2019
@cjihrig
Copy link
Contributor Author

cjihrig commented Jun 8, 2019

Fixes #28126

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Jun 8, 2019

CI: https://ci.nodejs.org/job/node-test-pull-request/23714/

EDIT(cjihrig): CI was yellow.

Copy link
Member

@santigimeno santigimeno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

This commit fixes a C++ abort for connected dgram sockets
by improving input validation in the JS layer.

Fixes: nodejs#28126
PR-URL: nodejs#28135
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@cjihrig cjihrig merged commit d1dd4e1 into nodejs:master Jun 10, 2019
@cjihrig cjihrig deleted the dgram branch June 10, 2019 16:18
BridgeAR pushed a commit that referenced this pull request Jun 17, 2019
This commit fixes a C++ abort for connected dgram sockets
by improving input validation in the JS layer.

Fixes: #28126
PR-URL: #28135
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BridgeAR BridgeAR mentioned this pull request Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dgram Issues and PRs related to the dgram subsystem / UDP.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants