Ethereal-dev: [Ethereal-dev] How to handle bad behaviour of various dissectors?

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

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Sat, 15 Jan 2005 00:40:57 +0100
Hi List!

It's about what to do, when a dissector reports invalid some data (like recent length reports) to proto.c.

I'm currently unsure about the (intended) behaviour of the functions in proto.c and various other places.

Currently, they will (usually) do an assert when something is going wrong.

What about simply throwing an exception? I would think that's the more appropriate thing to do, comparing to an exception...

What do others think?

Regards, ULFL