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-ber.h | |
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-ber.h')
-rw-r--r-- | epan/dissectors/packet-ber.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ber.h b/epan/dissectors/packet-ber.h index 4e60881ce1..ac2302348c 100644 --- a/epan/dissectors/packet-ber.h +++ b/epan/dissectors/packet-ber.h @@ -134,6 +134,8 @@ extern int dissect_ber_GeneralString(packet_info *pinfo, proto_tree *tree, tvbuf /* this function dissects a BER Object Identifier + * IF you pass a pointer for value_string to this one, MAKE SURE it is declared + * as char foo[MAX_OID_STR_LEN] */ extern int dissect_ber_object_identifier(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id, char *value_string); |