Files
node/lib
bad1e2fe6a crypto: fix unsigned conversion of 4-byte RSA publicExponent
`bigIntArrayToUnsignedInt` used the signed `<<` operator, so when the
most significant byte of a 4-byte input had its top bit set (e.g.
`[0x80, 0x00, 0x00, 0x01]`) the result was a negative Int32 instead of
the intended unsigned 32-bit value. This caused any RSA `publicExponent`
exactly 4 bytes long with the top bit set to be parsed incorrectly.
Coerce the final value with `>>> 0` and add a unit test.

Assisted-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: DeepView Autofix <276251120+deepview-autofix@users.noreply.github.com>
Co-Authored-By: Nikita Skovoroda <chalkerx@gmail.com>
Signed-off-by: Nikita Skovoroda <chalkerx@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62839
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2026-05-05 16:19:40 +02:00
..
…
…
…
…
2026-05-05 16:19:18 +02:00
2026-05-05 16:19:18 +02:00
2026-05-05 16:19:26 +02:00
2026-05-05 16:19:18 +02:00
2026-05-05 16:19:31 +02:00
…
2025-12-10 16:12:28 +00:00
2025-12-22 16:14:46 +00:00
2024-10-09 06:42:16 +00:00
2026-03-26 05:55:01 +00:00
2025-09-04 11:58:50 +00:00
2026-02-21 16:30:23 +00:00
2026-05-05 16:19:15 +02:00
2026-05-05 16:19:22 +02:00
2026-05-05 16:19:39 +02:00
2025-08-05 13:45:41 +00:00