node/lib/internal/bootstrap/switches
Tobias Nießen 997334c949
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: https://github.com/nodejs/node/pull/36786
PR-URL: https://github.com/nodejs/node/pull/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>
2022-10-10 01:12:15 +00:00
..
does_not_own_process_state.js lib: move initialization of APIs for changing process state 2020-01-06 06:54:17 -08:00
does_own_process_state.js process: fix uid/gid validation to avoid crash 2022-10-10 01:12:15 +00:00
is_main_thread.js v8: add v8.startupSnapshot utils 2022-06-17 19:23:56 +08:00
is_not_main_thread.js lib: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00