Commit a67ada7
tls: copy the Buffer object before using
cherry-pick c26b9af from v6-staging.
`convertNPNProtocols` and `convertALPNProtocols' uses the `protocols`
buffer object as it is, and if it is modified outside of core, it
might have an impact. This patch makes a copy of the buffer object,
before using it.
PR-URL: #8055
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>1 parent 7ca31e3 commit a67ada7Copy full SHA for a67ada7
File tree
Expand file treeCollapse file tree
2 files changed
+16
-10
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+16
-10
lines changedOpen diff view settings
Collapse file
+7-10Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
59 | 58 | |
60 | 59 | |
61 | 60 | |
62 | 61 | |
63 | 62 | |
64 | 63 | |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
| 64 | + |
| 65 | + |
| 66 | + |
70 | 67 | |
71 | 68 | |
72 | 69 | |
|
Collapse file
test/parallel/test-tls-basic-validations.js
Copy file name to clipboardExpand all lines: test/parallel/test-tls-basic-validations.js+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
0 commit comments