Commit a7ef102
crypto: add null check to outputLength logic
The Hash constructor's outputLength logic checks if the options
input is an object, but doesn't check for null objects. This
commit adds that check.
PR-URL: #28864
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 9e7c662 commit a7ef102Copy full SHA for a7ef102
File tree
Expand file treeCollapse file tree
2 files changed
+4
-1
lines changedOpen diff view settings
Filter options
- lib/internal/crypto
- test/parallel
Expand file treeCollapse file tree
2 files changed
+4
-1
lines changedOpen diff view settings
Collapse file
lib/internal/crypto/hash.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/hash.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | | - |
| 39 | + |
| 40 | + |
40 | 41 | |
41 | 42 | |
42 | 43 | |
|
Collapse file
test/parallel/test-crypto-hash.js
Copy file name to clipboardExpand all lines: test/parallel/test-crypto-hash.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
191 | 191 | |
192 | 192 | |
193 | 193 | |
| 194 | + |
| 195 | + |
194 | 196 | |
195 | 197 | |
196 | 198 | |
|
0 commit comments