aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ocsp.c
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-ocsp.c
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-ocsp.c')
-rw-r--r--epan/dissectors/packet-ocsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ocsp.c b/epan/dissectors/packet-ocsp.c
index 70f7794382..fb4144f251 100644
--- a/epan/dissectors/packet-ocsp.c
+++ b/epan/dissectors/packet-ocsp.c
@@ -139,7 +139,7 @@ static gint ett_ocsp_CrlID = -1;
/*--- End of included file: packet-ocsp-ett.c ---*/
-static char responseType_id[64]; /*64 chars should be long enough? */
+static char responseType_id[BER_MAX_OID_STR_LEN];