aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ber.h
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 /epan/dissectors/packet-ber.h
parente8730eab95fce56dd66b6fb7ceab6983058dca67 (diff)
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 'epan/dissectors/packet-ber.h')
-rw-r--r--epan/dissectors/packet-ber.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ber.h b/epan/dissectors/packet-ber.h
index ecefef4337..2a65ca336d 100644
--- a/epan/dissectors/packet-ber.h
+++ b/epan/dissectors/packet-ber.h
@@ -71,6 +71,8 @@ typedef int (*ber_callback)(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb,
#define BER_UNI_TAG_CHARACTERSTRING 29
#define BER_UNI_TAG_BMPString 30
+#define BER_MAX_OID_STR_LEN 256
+
/* this function dissects the identifier octer of the BER TLV.
* We only handle TAGs (and LENGTHs) that fit inside 32 bit integers.
*/