Ethereal-dev: [Ethereal-dev] Potential crash in NDPS dissector.

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

From: "Greg Morris" <gmorris@xxxxxxxxxx>
Date: Fri, 17 Oct 2003 15:44:05 -0600
Attached is a diff to fix a potential crash in the NDPS dissector. I had to add checks for length of 0 when calling proto_tree_add_item with length from packet trace. If length was zero then an exception would occur. This could happen with a corrupt packet trace or dissector logic failure.
 
Also corrected Attribute_Value/ Event Handling Profile routine. Missing case type of 0x2.
 
Greg

Attachment: packet-ndps.c.diff
Description: Binary data