Merge in SNORT/snort3 from ~SATHIRKA/snort3:ssl_validate_crash to master
Squashed commit of the following:
commit
73c6ffdcf155f88b01b7ac8e7070aacc7aa9319c
Author: Sreeja Athirkandathil Narayanan <sathirka@cisco.com>
Date: Thu Apr 27 13:15:13 2023 -0400
appid: validate data size of SSL certificate record before parsing
/* Start pulling out certificates. */
if (!ss->certs_data)
{
+ if (size < sizeof(ServiceSSLV3CertsRecord))
+ goto fail;
+
certs_rec = (const ServiceSSLV3CertsRecord*)data;
ss->certs_len = ntoh3(certs_rec->certs_len);
ss->certs_data = (uint8_t*)snort_alloc(ss->certs_len);