Title: crypto: fix unsigned conversion of 4-byte RSA publicExponent by deepview-autofix · Pull Request #62839 · nodejs/node · GitHub
Open Graph Title: crypto: fix unsigned conversion of 4-byte RSA publicExponent by deepview-autofix · Pull Request #62839 · nodejs/node
X Title: crypto: fix unsigned conversion of 4-byte RSA publicExponent by deepview-autofix · Pull Request #62839 · nodejs/node
Description: 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.
Open Graph Description: 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 i...
X Description: 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...
Opengraph URL: https://github.com/nodejs/node/pull/62839
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b3a74be5-49e1-3007-98b6-a3708fe1d0d2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 898E:24E79D:273C4F:34497F:6A4C264F |
| html-safe-nonce | 5102c5be1fc06180cab1b9125ce464c168eec644779a6517231304d007d437fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OThFOjI0RTc5RDoyNzNDNEY6MzQ0OTdGOjZBNEMyNjRGIiwidmlzaXRvcl9pZCI6IjE3MzM1MjMwMDIzMDM5ODExMzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e4a923b466201e8b395b169ffddc5f1bc0439cb2c19159ff9963a7fcfd2b5756 |
| hovercard-subject-tag | pull_request:3553782730 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/node/pull/62839/files |
| twitter:image | https://avatars.githubusercontent.com/u/276251120?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/276251120?s=400&v=4 |
| og:image:alt | 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 i... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ee13484b32cf23e15fde191da4c9aa47d41201c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width