Commit 7678da4
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 f1ea367 commit 7678da4Copy full SHA for 7678da4
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 |
|---|---|---|
| ||
1483 | 1483 | |
1484 | 1484 | |
1485 | 1485 | |
| 1486 | + |
| 1487 | + |
1486 | 1488 | |
1487 | 1489 | |
1488 | 1490 | |
|
Collapse file
+7-13Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3783 | 3783 | |
3784 | 3784 | |
3785 | 3785 | |
3786 | | - |
3787 | | - |
3788 | | - |
| 3786 | + |
| 3787 | + |
3789 | 3788 | |
3790 | 3789 | |
3791 | 3790 | |
| ||
3907 | 3906 | |
3908 | 3907 | |
3909 | 3908 | |
3910 | | - |
3911 | | - |
3912 | | - |
| 3909 | + |
| 3910 | + |
3913 | 3911 | |
3914 | 3912 | |
3915 | 3913 | |
| ||
4132 | 4130 | |
4133 | 4131 | |
4134 | 4132 | |
4135 | | - |
4136 | | - |
4137 | | - |
4138 | | - |
| 4133 | + |
| 4134 | + |
4139 | 4135 | |
4140 | 4136 | |
4141 | 4137 | |
| ||
4348 | 4344 | |
4349 | 4345 | |
4350 | 4346 | |
4351 | | - |
4352 | | - |
4353 | | - |
| 4347 | + |
4354 | 4348 | |
4355 | 4349 | |
4356 | 4350 | |
|
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