diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-04-22 21:17:13 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-04-22 21:17:13 +0000 |
commit | 4c59fdc388eb5bcc9cf78d1385c23d1e60546b21 (patch) | |
tree | f8f62a7beb847bddda04888f1e98f4140a5e1ae1 /epan/dissectors/packet-cms.c | |
parent | 3e0cbeaa55c93ec1ee25c6625daea5edf8c45081 (diff) |
Define a maximum OID string length, and use it in a lot of places. Fixes a
buffer overflow found while fuzz testing.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14169 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-cms.c')
-rw-r--r-- | epan/dissectors/packet-cms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cms.c b/epan/dissectors/packet-cms.c index 02aece5548..4e5fe33a6f 100644 --- a/epan/dissectors/packet-cms.c +++ b/epan/dissectors/packet-cms.c @@ -186,7 +186,7 @@ static gint ett_cms_ExtendedCertificateInfo = -1; static int dissect_cms_OCTET_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) ; /* XXX kill a compiler warning until asn2eth stops generating these silly wrappers */ -static char object_identifier_id[64]; /*64 chars should be long enough? */ +static char object_identifier_id[BER_MAX_OID_STR_LEN]; /*--- Included file: packet-cms-fn.c ---*/ |