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

process: fix uid/gid validation to avoid crash by tniessen · Pull Request #44910 · nodejs/node · GitHub

/ node Public

process: fix uid/gid validation to avoid crash - #44910

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
tniessen:process-fix-id-validation
Oct 10, 2022
Merged

process: fix uid/gid validation to avoid crash#44910
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
tniessen:process-fix-id-validation

Conversation

tniessen commented Oct 7, 2022

Copy link
Copy Markdown
Member

id |= 0 turns unsigned 32-bit integer values exceeding the unsigned 31-bit range into negative integers, causing a crash. Use id >>>= 0 instead, which works properly for all unsigned 32-bit integers.

Refs: #36786

id |= 0 turns unsigned 32-bit integer values exceeding the unsigned
31-bit range into negative integers, causing a crash. Use id >>>= 0
instead, which works properly for all unsigned 32-bit integers.

Refs: nodejs#36786
tniessen requested a review from jasnell October 7, 2022 12:10

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/startup

tniessen added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 7, 2022
nodejs-github-bot added the needs-ci PRs that need a full CI run. label Oct 7, 2022
tniessen added the process Issues and PRs related to the process subsystem. label Oct 7, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 7, 2022

Copy link
Copy Markdown
Collaborator

tniessen added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Oct 7, 2022
aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 10, 2022
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 10, 2022
nodejs-github-bot merged commit 997334c into nodejs:main Oct 10, 2022

Copy link
Copy Markdown
Collaborator

Landed in 997334c

danielleadams pushed a commit that referenced this pull request Oct 11, 2022
id |= 0 turns unsigned 32-bit integer values exceeding the unsigned
31-bit range into negative integers, causing a crash. Use id >>>= 0
instead, which works properly for all unsigned 32-bit integers.

Refs: #36786
PR-URL: #44910
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Erick Wendel <erick.workspace@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@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. needs-ci PRs that need a full CI run. process Issues and PRs related to the process subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL