Commit 6c2daf0
committed
crypto: throw proper errors if out enc is UTF-16
Throw `Error`s instead of hard crashing when the `.digest()` output
encoding is UTF-16.
Fixes: #9817
PR-URL: #12752
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>1 parent 9990be2 commit 6c2daf0
File tree
3 files changed
+18
-4
lines changed- src
- test/parallel
3 files changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3798 | 3798 | | |
3799 | 3799 | | |
3800 | 3800 | | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
3801 | 3805 | | |
3802 | 3806 | | |
3803 | 3807 | | |
| |||
3921 | 3925 | | |
3922 | 3926 | | |
3923 | 3927 | | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
3924 | 3932 | | |
3925 | 3933 | | |
3926 | 3934 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
| 111 | + | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
117 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
0 commit comments