Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that the provided client list is non-NULL and starts with a valid entry. When called from the ALPN callback the client list should already have been validated by OpenSSL so this should not cause a problem. When called from the NPN callback the client list is locally configured and will not have already been validated. Therefore SSL_select_next_proto should not assume that it is correctly formatted. We implement stricter checking of the client protocol list. We also do the same for the server list while we are about it. CVE-2024-5535 Reviewed-by: Neil Horman <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl/openssl#24718) (cherry picked from commit 4ada436a1946cbb24db5ab4ca082b69c1bc10f37) Signed-off-by: hhhFun <[email protected]>
- Loading branch information