aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/cmip/packet-cmip-template.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-22 21:17:13 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-22 21:17:13 +0000
commit4c59fdc388eb5bcc9cf78d1385c23d1e60546b21 (patch)
treef8f62a7beb847bddda04888f1e98f4140a5e1ae1 /asn1/cmip/packet-cmip-template.c
parent3e0cbeaa55c93ec1ee25c6625daea5edf8c45081 (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 'asn1/cmip/packet-cmip-template.c')
-rw-r--r--asn1/cmip/packet-cmip-template.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/asn1/cmip/packet-cmip-template.c b/asn1/cmip/packet-cmip-template.c
index 968636094b..19228ddbfe 100644
--- a/asn1/cmip/packet-cmip-template.c
+++ b/asn1/cmip/packet-cmip-template.c
@@ -69,14 +69,14 @@ static int opcode_type;
static int attributeform;
#define ATTRIBUTE_LOCAL_FORM 0
#define ATTRIBUTE_GLOBAL_FORM 1
-static char attribute_identifier_id[64]; /*64 chars should be long enough? */
+static char attribute_identifier_id[BER_MAX_OID_STR_LEN];
-static char object_identifier_id[64]; /*64 chars should be long enough? */
+static char object_identifier_id[BER_MAX_OID_STR_LEN];
static int objectclassform;
#define OBJECTCLASS_LOCAL_FORM 0
#define OBJECTCLASS_GLOBAL_FORM 1
-static char objectclass_identifier_id[64]; /*64 chars should be long enough? */
+static char objectclass_identifier_id[BER_MAX_OID_STR_LEN];
#include "packet-cmip-fn.c"