Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-afs.c packet-auto_rp.c packet-beep.c

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:17 -0600 (CST)
gram        2002/01/31 22:34:17 CST

  Modified files:
    .                    packet-afs.c packet-auto_rp.c 
                         packet-beep.c packet-eigrp.c 
                         packet-h261.c packet-isup.c 
                         packet-mpeg1.c packet-tns.c 
  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.41      +2 -2      ethereal/packet-afs.c
  1.19      +2 -2      ethereal/packet-auto_rp.c
  1.5       +2 -2      ethereal/packet-beep.c
  1.22      +2 -2      ethereal/packet-eigrp.c
  1.14      +2 -2      ethereal/packet-h261.c
  1.11      +40 -52    ethereal/packet-isup.c
  1.7       +2 -2      ethereal/packet-mpeg1.c
  1.29      +7 -9      ethereal/packet-tns.c