cvs commit: src/sys/netinet ip_input.c

Andre Oppermann andre at FreeBSD.org
Thu Sep 16 11:33:39 PDT 2004


andre       2004-09-16 18:33:39 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          ip_input.c 
  Log:
  Fix an out of bounds write during the initialization of the PF_INET protocol
  family to the ip_protox[] array.  The protocol number of IPPROTO_DIVERT is
  larger than IPPROTO_MAX and was initializing memory beyond the array.
  Catch all these kinds of errors by ignoring protocols that are higher than
  IPPROTO_MAX or 0 (zero).
  
  Add more comments ip_init().
  
  Revision  Changes    Path
  1.289     +14 -4     src/sys/netinet/ip_input.c


More information about the cvs-src mailing list