Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal packet-dns.c packet-nbns.c

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 7 Oct 1999 04:21:55 -0500 (CDT)
guy         1999/10/07 04:21:49 CDT

  Modified files:
    .                    packet-dns.c packet-nbns.c 
  Log:
  A DNS or NBNS name may contain pointers to other names in the packet; if
  the stuff referred to by those pointers goes past the end of the packet,
  that's not a reason not to return the length of the DNS or NBNS name
  itself - you can tag that name even though it's bad.  Therefore,
  "get_dns_name()" should return the length of the part of the name it's
  looked at even if that name contains a pointer to stuff that goes past
  the end of the packet.
  
  This means you can't check its return value to see if it's negative, and
  treat it as an error if it is; remove that stuff.
  
  Add checks to make sure the type and class fields in an RR don't go past
  the end of the packet.
  
  Revision  Changes    Path
  1.24      +13 -5     ethereal/packet-dns.c
  1.30      +9 -34     ethereal/packet-nbns.c