From owner-cvs-all@FreeBSD.ORG Sun Nov 21 03:14:33 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2083816A4CE; Sun, 21 Nov 2004 03:14:33 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EED6343D48; Sun, 21 Nov 2004 03:14:32 +0000 (GMT) (envelope-from tjr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iAL3EWnY019656; Sun, 21 Nov 2004 03:14:32 GMT (envelope-from tjr@repoman.freebsd.org) Received: (from tjr@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iAL3EWrN019655; Sun, 21 Nov 2004 03:14:32 GMT (envelope-from tjr) Message-Id: <200411210314.iAL3EWrN019655@repoman.freebsd.org> From: "Tim J. Robbins" Date: Sun, 21 Nov 2004 03:14:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/regex engine.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2004 03:14:33 -0000 tjr 2004-11-21 03:14:32 UTC FreeBSD src repository Modified files: lib/libc/regex engine.c Log: Fix computation of the 'n' argument to mbrtowc (through XMBRTOWC) to avoid reading past 'stop' in various places when converting multibyte characters. Reading too far caused truncation to not be detected when it should have been, eventually causing regexec() to loop infinitely in with certain combinations of patterns and strings in multibyte locales. PR: 74020 MFC after: 4 weeks Revision Changes Path 1.15 +4 -4 src/lib/libc/regex/engine.c