Date: Thu, 16 Sep 2004 18:33:39 +0000 (UTC) From: Andre Oppermann <andre@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_input.c Message-ID: <200409161833.i8GIXdmd044811@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409161833.i8GIXdmd044811>