Ethereal-cvs: [Ethereal-cvs] rev 15595: /trunk/epan/dissectors/: packet-ber.c

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

Date: Sun, 28 Aug 2005 17:57:31 GMT
User: guy
Date: 2005/08/28 12:57 PM

Log:
 When creating subset tvbuffs, set the length to the minimum of the
 desired reported length and the remaining length, so we don't throw an
 exception at tvbuff creation time if we don't have all the desired data
 - we want to throw the exception at dissection time, so we can dissect
 the data we do have.
 
 Use "tvb_ensure_bytes_exist()" to force exceptions to be thrown.
 
 When "dissect_unknown_ber()" is called from "call_ber_oid_callback()",
 we're handing it a newly-created tvbuff, so the offset in that tvbuff
 should be zero.

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



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=15595&view=rev