Ethereal-cvs: [Ethereal-cvs] r11490 - trunk/epan/dissectors: trunk/epan/dissectors/packet-ber.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Fri, 23 Jul 2004 18:06:38 -0500 (CDT)
Author: sahlberg
Date: Fri Jul 23 18:06:38 2004
New Revision: 11490

Modified:
   trunk/epan/dissectors/packet-ber.c
Log:
inside dissect_ber_sequence() we know the expected length of the field that follows.

use this and create a new tvbsubset so that
1, reading too much data is flagged as MALFORMED PACKET indicating a bug in the dissector (or a packet that IS malformed)
2, this also implicitely passes the length of the data through the ber.oid dissector handle in case we want to pick it up later.