wireshark/epan/dissectors/asn1/cms
John Thacker c14d731e45 CMS: get rid of globals
Get rid of the global content_tvb and object_identifier_id in
the CMS dissector, and put them in a packet scoped proto data
struct, so that when there's a non fatal exception retrieving
the OID we don't use the global value from a previous packet
(or worse, file), since what the content_tvb and object_identifier_id
pointed to were both packet scoped that could lead to memory
access violations.

Clear the values of the OID and the content_tvb each time before
they are retrieved, so that values from a previous PDU of CMS
in the same packet aren't used either. This was not quite as bad
as using a value already freed, but still bad.

Fix #17800, #17809, #17835
2022-01-07 03:17:07 +00:00
..
AttributeCertificateVersion1.asn
CMSFirmwareWrapper.asn
CMakeLists.txt dissectors: more SPDX license convertions. 2018-03-07 17:18:47 +00:00
CryptographicMessageSyntax.asn
cms.cnf CMS: get rid of globals 2022-01-07 03:17:07 +00:00
packet-cms-template.c CMS: get rid of globals 2022-01-07 03:17:07 +00:00
packet-cms-template.h