From owner-cvs-src@FreeBSD.ORG Thu Sep 16 18:33:39 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7B4916A4CE; Thu, 16 Sep 2004 18:33:39 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A847F43D1F; Thu, 16 Sep 2004 18:33:39 +0000 (GMT) (envelope-from andre@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i8GIXde6044812; Thu, 16 Sep 2004 18:33:39 GMT (envelope-from andre@repoman.freebsd.org) Received: (from andre@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i8GIXdmd044811; Thu, 16 Sep 2004 18:33:39 GMT (envelope-from andre) Message-Id: <200409161833.i8GIXdmd044811@repoman.freebsd.org> From: Andre Oppermann Date: Thu, 16 Sep 2004 18:33:39 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet ip_input.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 18:33:39 -0000 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