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

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

Merged
merged 1 commit into from Oct 10, 2022

Commits on Oct 7, 2022

  1. process: fix uid/gid validation to avoid crash

    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 committed Oct 7, 2022
    Copy the full SHA
    37479e9 View commit details
    Browse the repository at this point in the history