From owner-cvs-all@FreeBSD.ORG Mon Apr 2 08:14:46 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA29116A401; Mon, 2 Apr 2007 08:14:46 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id CB4CB13C480; Mon, 2 Apr 2007 08:14:46 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l328EkFN064373; Mon, 2 Apr 2007 08:14:46 GMT (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l328EkT1064372; Mon, 2 Apr 2007 08:14:46 GMT (envelope-from yar) Message-Id: <200704020814.l328EkT1064372@repoman.freebsd.org> From: Yar Tikhiy Date: Mon, 2 Apr 2007 08:14:46 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/sed process.c src/tools/regression/usr.bin/sed regress.b2a.out regress.sh X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 02 Apr 2007 08:14:47 -0000 yar 2007-04-02 08:14:46 UTC FreeBSD src repository Modified files: usr.bin/sed process.c tools/regression/usr.bin/sed regress.sh Added files: tools/regression/usr.bin/sed regress.b2a.out Log: Don't forget to close the range if we branched over its end and had no chance to match it by the 2nd address precisely. Otherwise the unclosed range would bogusly extend to the end of stream. Add a basic regression test for the bug fixed. (This change also fixes the more complex case 5.3 from `multitest.t'.) Compared with: SUN and GNU seds Tested by: regression tests MFC after: 1 week Revision Changes Path 1.1 +3 -0 src/tools/regression/usr.bin/sed/regress.b2a.out (new) 1.13 +3 -1 src/tools/regression/usr.bin/sed/regress.sh 1.44 +11 -2 src/usr.bin/sed/process.c