Permalink
Please
sign in to comment.
Browse files
tls: throw if protocol too long
The convertProtocols() function now throws a range error when the byte length of a protocol is too long to fit in a Buffer. Also added a test case in test/parallel/test-tls-basic-validations.js to cover this. PR-URL: #23606 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
- Loading branch information...
Showing
with
25 additions
and 4 deletions.
- +4 −3 lib/internal/errors.js
- +8 −1 lib/tls.js
- +13 −0 test/parallel/test-tls-basic-validations.js
0 comments on commit
3170cb4