aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-06-21 09:38:59 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-06-21 09:38:59 +0000
commit33f4400f83a517ea30f7902a773801b5affe2df9 (patch)
tree4f2079d1ce173ba61d9270e4f2df172e3c43be06 /asn1
parent4af84b3d87d68167043ba6f6cfbd1f43a480b3fa (diff)
the maximum ASN OID length is 256 bytes and there is a define to control this.
fix bug251 and all other occurances where an oid string passed to packet_ber_object_identifier() is not defined as foo[MAX_OID_STR_LEN] svn path=/trunk/; revision=14720
Diffstat (limited to 'asn1')
-rw-r--r--asn1/acse/packet-acse-template.c2
-rw-r--r--asn1/tcap/tcap.cnf4
2 files changed, 3 insertions, 3 deletions
diff --git a/asn1/acse/packet-acse-template.c b/asn1/acse/packet-acse-template.c
index 7b118d7a84..8c2e38496c 100644
--- a/asn1/acse/packet-acse-template.c
+++ b/asn1/acse/packet-acse-template.c
@@ -80,7 +80,7 @@ static gint ett_acse = -1;
static struct SESSION_DATA_STRUCTURE* session = NULL;
-static char object_identifier_id[64]; /*64 chars should be long enough? */
+static char object_identifier_id[MAX_OID_STR_LEN];
/* indirect_reference, used to pick up the signalling so we know what
kind of data is transferred in SES_DATA_TRANSFER_PDUs */
static guint32 indir_ref=0;
diff --git a/asn1/tcap/tcap.cnf b/asn1/tcap/tcap.cnf
index 2350faf721..d2cdea9797 100644
--- a/asn1/tcap/tcap.cnf
+++ b/asn1/tcap/tcap.cnf
@@ -134,14 +134,14 @@ else
offset+=len;
#.FN_BODY Applicationcontext
- static char buffer[128];
+ static char buffer[MAX_OID_STR_LEN];
cur_oid = buffer;
pinfo->private_data = buffer;
offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
hf_index, cur_oid);
#.FN_BODY UserInfoOID
- static char buffer[128];
+ static char buffer[MAX_OID_STR_LEN];
tcapext_oid = buffer;
pinfo->private_data = buffer;
offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,