diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-06-21 09:38:59 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-06-21 09:38:59 +0000 |
commit | 33f4400f83a517ea30f7902a773801b5affe2df9 (patch) | |
tree | 4f2079d1ce173ba61d9270e4f2df172e3c43be06 /epan/dissectors/packet-tcap.c | |
parent | 4af84b3d87d68167043ba6f6cfbd1f43a480b3fa (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 'epan/dissectors/packet-tcap.c')
-rw-r--r-- | epan/dissectors/packet-tcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tcap.c b/epan/dissectors/packet-tcap.c index 7146ae5e84..872b471b16 100644 --- a/epan/dissectors/packet-tcap.c +++ b/epan/dissectors/packet-tcap.c @@ -297,7 +297,7 @@ static int dissect_protocol_versionrq_impl(packet_info *pinfo, proto_tree *tree, static int dissect_tcap_Applicationcontext(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - 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, @@ -609,7 +609,7 @@ dissect_tcap_ExternalPDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, p static int dissect_tcap_UserInfoOID(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - 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, |