Ethereal-dev: [Ethereal-dev] Handling of TVBs

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

From: Michael Tuexen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Fri, 27 Dec 2002 17:01:42 +0100
Dear all,

I understand the handling and raising of exceptions for TVBs based
on the length and the reported length if an accessors goes beyond the limit.

But should not the case reported length <> length also raise an exception? Or how should one handle the case where I know from the protocol specification that some part of the message has a specific length (reported length) but the actual length is longer. If it is shorter an exception will be raised, because the dissection will call some accessors. I do not think that it is a good idea to handle all the cases where the length > reported length or better length <>
reported length separately in all dissectors.

Any ideas, comments?

Best regards
Michael

--
Michael.Tuexen@xxxxxxxxxxxxxxxxx