Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan proto.c tvbuff.c tvbuff.h

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

From: Gilbert Ramirez Jr <gram@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 31 Jan 2002 22:34:18 -0600 (CST)
gram        2002/01/31 22:34:18 CST

  Modified files:
    epan                 proto.c tvbuff.c tvbuff.h 
  Log:
  Provide tvb_ensure_length_remaining(), which is like
  tvb_length_remaining() except that it throws BoundsError if 'offset'
  is out-of-bounds.
  
  Allow a length argument of -1 for FT_STRING and FT_BYTES fields
  in proto_tree_add_item().
  
  Change some dissectors to either use -1 for the length argument in
  calls to proto_tree_add_item(), or call tvb_ensure_length_remaining()
  instead of tvb_length_remaining(), or to check the return-value
  of tvb_length_remaining(). Changes to more dissectors are necessary,
  but will follow later.
  
  Revision  Changes    Path
  1.51      +9 -3      ethereal/epan/proto.c
  1.28      +17 -1     ethereal/epan/tvbuff.c
  1.21      +4 -1      ethereal/epan/tvbuff.h