From owner-cvs-all Fri Nov 9 2:17:50 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0819937B416; Fri, 9 Nov 2001 02:17:45 -0800 (PST) Received: (from dcs@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fA9AHiS01811; Fri, 9 Nov 2001 02:17:44 -0800 (PST) (envelope-from dcs) Message-Id: <200111091017.fA9AHiS01811@freefall.freebsd.org> From: "Daniel C. Sobral" Date: Fri, 9 Nov 2001 02:17:44 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/regex regcomp.c X-FreeBSD-CVS-Branch: 1 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dcs 2001/11/09 02:17:44 PST Modified files: (Branch: 1) lib/libc/regex regcomp.c Log: The algorithm that computes the tables used in the BM search algorithm sometimes access an array beyond it's length. This only happens in the last iteration of a loop, and the value fetched is not used then, so the bug is a relatively innocent one. Fix this by not fetching any value on the last iteration of said loop. Submitted by: MKI MFC after: 1 week Revision Changes Path 1.24 +3 -2 src/lib/libc/regex/regcomp.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message