Commit 67d2114
crypto: handle exceptions in hmac/hash.digest
Forced conversion of the encoding parameter to a string within
crypto.js, fixing segmentation faults in node_crypto.cc.
Fixes: #9819
PR-URL: #12164
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 3b765f5 commit 67d2114Copy full SHA for 67d2114
File tree
Expand file treeCollapse file tree
4 files changed
+35
-14
lines changedOpen diff view settings
Filter options
- lib
- src
- test/parallel
Expand file treeCollapse file tree
4 files changed
+35
-14
lines changedOpen diff view settings
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
78 | 78 | |
79 | 79 | |
80 | 80 | |
81 | | - |
| 81 | + |
| 82 | + |
82 | 83 | |
83 | 84 | |
84 | 85 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1443 | 1443 | |
1444 | 1444 | |
1445 | 1445 | |
| 1446 | + |
| 1447 | + |
1446 | 1448 | |
1447 | 1449 | |
1448 | 1450 | |
|
Collapse file
+7-13Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3769 | 3769 | |
3770 | 3770 | |
3771 | 3771 | |
3772 | | - |
3773 | | - |
3774 | | - |
| 3772 | + |
| 3773 | + |
3775 | 3774 | |
3776 | 3775 | |
3777 | 3776 | |
| ||
3893 | 3892 | |
3894 | 3893 | |
3895 | 3894 | |
3896 | | - |
3897 | | - |
3898 | | - |
| 3895 | + |
| 3896 | + |
3899 | 3897 | |
3900 | 3898 | |
3901 | 3899 | |
| ||
4118 | 4116 | |
4119 | 4117 | |
4120 | 4118 | |
4121 | | - |
4122 | | - |
4123 | | - |
4124 | | - |
| 4119 | + |
| 4120 | + |
4125 | 4121 | |
4126 | 4122 | |
4127 | 4123 | |
| ||
4334 | 4330 | |
4335 | 4331 | |
4336 | 4332 | |
4337 | | - |
4338 | | - |
4339 | | - |
| 4333 | + |
4340 | 4334 | |
4341 | 4335 | |
4342 | 4336 | |
|
Collapse file
test/parallel/test-regress-GH-9819.js
Copy file name to clipboard+24Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
0 commit comments