From 4c59fdc388eb5bcc9cf78d1385c23d1e60546b21 Mon Sep 17 00:00:00 2001 From: gerald Date: Fri, 22 Apr 2005 21:17:13 +0000 Subject: Define a maximum OID string length, and use it in a lot of places. Fixes a buffer overflow found while fuzz testing. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14169 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-x509ce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-x509ce.c') diff --git a/epan/dissectors/packet-x509ce.c b/epan/dissectors/packet-x509ce.c index e329b8f645..54712d5294 100644 --- a/epan/dissectors/packet-x509ce.c +++ b/epan/dissectors/packet-x509ce.c @@ -260,7 +260,7 @@ static gint ett_x509ce_PkiPathMatchSyntax = -1; /*--- End of included file: packet-x509ce-ett.c ---*/ -static char object_identifier_id[64]; /*64 chars should be long enough? */ +static char object_identifier_id[BER_MAX_OID_STR_LEN]; /*--- Included file: packet-x509ce-fn.c ---*/ -- cgit v1.2.3