-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
crypto: avoid copying buffers to UTF-8 strings in crypto.hash()
#59067
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
crypto: avoid copying buffers to UTF-8 strings in crypto.hash()
#59067
Conversation
Review requested:
|
This likely will have to wait for after the announced security releases. |
c631a71
to
2a23cf2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #59067 +/- ##
=======================================
Coverage 90.06% 90.06%
=======================================
Files 645 645
Lines 189130 189130
Branches 37094 37085 -9
=======================================
+ Hits 170339 170349 +10
+ Misses 11511 11507 -4
+ Partials 7280 7274 -6
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I see exactly the same behaviour on Windows. It doesn't look like this is a fragmentation issue, or even a heap issue per se – it looks like the process of running the equivalent of Edit: https://issues.chromium.org/issues/432212877, for academic interest. |
🎲🎲 |
PR-URL: #59067 Fixes: #59057 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Landed in fc4a8af |
PR-URL: #59067 Fixes: #59057 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
ping @nodejs/releasers |
Releases are currently blocked on nodejs/build#4105 |
Fixes: #59057
Testing in the wild confirms this to fix the associated downstream issue. Not sure a unit test is feasible.
cc: @nodejs/releasers – given the impact on the ecosystem, this would ideally be a candidate for a patch release.