Commit 8c81013
authored
fix: resource exhaustion from an incomplete encrypted message (#348)
Decrypt needs to actively verify
that it has reached the end of the encrypted message.
This fix ensures an error on an incomplete encrypted message
Also, the signature_info parsing needed to be updated,
to handle an incomplete signature block.
Browsers were never impacted,
but the tests were included for completeness.1 parent c103fa4 commit 8c81013
File tree
10 files changed
+968
-13
lines changed- modules
- decrypt-browser/test
- decrypt-node
- src
- test
- serialize
- src
- test
10 files changed
+968
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
55 | 88 | | |
0 commit comments