Wireshark-commits: [Wireshark-commits] rev 35330: /trunk/epan/dissectors/ /trunk/epan/dissectors/:
Date: Sun, 02 Jan 2011 21:28:00 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=35330

User: guy
Date: 2011/01/02 01:28 PM

Log:
 For those cases where we interpret the contents of an OCTET STRING,
 which could be of arbitrary length - even if it's not supposed to be! -
 as a value of some other type, by adding them as a registered field,
 first check to make sure the length of the field is appropriate for the
 type and, if not, show a dissection error, rather than showing a
 dissector-bug assertion when we call proto_tree_add_item().
 
 This fixes a bunch of dissector-bug assertions that show up with
 malformed BER-encoded packets.
 
 Also, fix a typo, and expand a comment.

Directory: /trunk/epan/dissectors/
  Changes    Path            Action
  +115 -4    packet-ber.c    Modified