Repository navigation
Commit 4e37ac4
sankalpsthakur
tls: throw on invalid ALPNProtocols instead of aborting
Fixes nodejs#65069
tls.connect() with malformed ALPNProtocols (empty string, invalid
wire format buffers) hits CHECK_EQ(0, SSL_set_alpn_protos(...)) and
aborts the process with SIGABRT. Replace the hard abort with
THROW_ERR_INVALID_ARG_VALUE so invalid input throws a recoverable
JavaScript exception.
Assisted-by: Codex
Signed-off-by: sankalpsthakur <[email protected]>1 parent ee64033 commit 4e37ac4
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1702 | 1702 | | |
1703 | 1703 | | |
1704 | 1704 | | |
1705 | | - | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
1706 | 1709 | | |
1707 | 1710 | | |
1708 | 1711 | | |
| |||
0 commit comments