Repository navigation
Commit a01afe2
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 a48e33f commit a01afe2
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1699 | 1699 | | |
1700 | 1700 | | |
1701 | 1701 | | |
1702 | | - | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
1703 | 1706 | | |
1704 | 1707 | | |
1705 | 1708 | | |
| |||
0 commit comments