Merge in SNORT/snort3 from ~KATHARVE/snort3:mms_cppcheck to master
Squashed commit of the following:
commit
1e1b2363d1283c763c1a5d1b2eab6534673f14c3
Author: Katura Harvey <katharve@cisco.com>
Date: Fri Apr 22 15:57:32 2022 -0400
mms: add check that BerElement argument isn't null before calling BerReader::read
bool process_next_ber_tag(BerReader* ber, BerElement* e, Cursor* tpkt_cur, BerTagProcessType
process_type)
{
- if (ber->read(tpkt_cur->start(), *e))
+ if (e and ber->read(tpkt_cur->start(), *e))
{
// determine if the cursor needs to be incremented by only the header
// length or both the header and payload length