Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-afs-macros.h

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 11 Oct 2002 16:58:26 -0500 (CDT)
guy         2002/10/11 16:58:26 CDT

  Modified files:
    .                    packet-afs-macros.h 
  Log:
  Fetch the pointer to a string before allocating memory for the string,
  so that if the string length is bogus and large, we'll throw an
  exception in "tvb_get_ptr()" rather than crashing when we fail to
  allocate the memory.
  
  Revision  Changes    Path
  1.21      +4 -2      ethereal/packet-afs-macros.h