summaryrefslogtreecommitdiff
path: root/asn1/ess
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-04-22 21:17:13 +0000
committerGerald Combs <gerald@wireshark.org>2005-04-22 21:17:13 +0000
commit082651c83efa53b9766460538603f101c643568e (patch)
treef8f62a7beb847bddda04888f1e98f4140a5e1ae1 /asn1/ess
parente8730eab95fce56dd66b6fb7ceab6983058dca67 (diff)
downloadwireshark-082651c83efa53b9766460538603f101c643568e.tar.gz
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/ess')
-rw-r--r--asn1/ess/packet-ess-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/ess/packet-ess-template.c b/asn1/ess/packet-ess-template.c
index 1d0edcf3be..2d80ce1a9e 100644
--- a/asn1/ess/packet-ess-template.c
+++ b/asn1/ess/packet-ess-template.c
@@ -51,7 +51,7 @@ static int hf_ess_SecurityCategory_type_OID = -1;
/* Initialize the subtree pointers */
#include "packet-ess-ett.c"
-static char object_identifier_id[64]; /*64 chars should be long enough? */
+static char object_identifier_id[BER_MAX_OID_STR_LEN];
#include "packet-ess-fn.c"