diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-04-22 21:17:13 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-04-22 21:17:13 +0000 |
commit | 082651c83efa53b9766460538603f101c643568e (patch) | |
tree | f8f62a7beb847bddda04888f1e98f4140a5e1ae1 /asn1/cms/packet-cms-template.c | |
parent | e8730eab95fce56dd66b6fb7ceab6983058dca67 (diff) | |
download | wireshark-082651c83efa53b9766460538603f101c643568e.tar.gz wireshark-082651c83efa53b9766460538603f101c643568e.tar.bz2 wireshark-082651c83efa53b9766460538603f101c643568e.zip |
Define a maximum OID string length, and use it in a lot of places. Fixes a
buffer overflow found while fuzz testing.
svn path=/trunk/; revision=14169
Diffstat (limited to 'asn1/cms/packet-cms-template.c')
-rw-r--r-- | asn1/cms/packet-cms-template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/cms/packet-cms-template.c b/asn1/cms/packet-cms-template.c index 293ac94460..644ea2b82d 100644 --- a/asn1/cms/packet-cms-template.c +++ b/asn1/cms/packet-cms-template.c @@ -54,7 +54,7 @@ static int hf_cms_ci_contentType = -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]; #include "packet-cms-fn.c" |