From owner-cvs-src-old@FreeBSD.ORG Tue Aug 17 15:03:57 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BF66106567A for ; Tue, 17 Aug 2010 15:03:57 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id EA6198FC19 for ; Tue, 17 Aug 2010 15:03:56 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o7HF3unH040851 for ; Tue, 17 Aug 2010 15:03:56 GMT (envelope-from jh@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o7HF3uMU040850 for cvs-src-old@freebsd.org; Tue, 17 Aug 2010 15:03:56 GMT (envelope-from jh@repoman.freebsd.org) Message-Id: <201008171503.o7HF3uMU040850@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jh@repoman.freebsd.org using -f From: Jaakko Heinonen Date: Tue, 17 Aug 2010 15:02:33 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/tools/regression/usr.bin Makefile src/tools/regression/usr.bin/comm Makefile regress.00.out regress.00a.in regress.00b.in regress.01.out regress.01a.in regress.01b.in regress.02.out regress.02a.in regress.02b.in regress.sh regress.t ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2010 15:03:57 -0000 jh 2010-08-17 15:02:33 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) tools/regression/usr.bin Makefile usr.bin/comm comm.c Added files: (Branch: RELENG_8) tools/regression/usr.bin/comm Makefile regress.00.out regress.00a.in regress.00b.in regress.01.out regress.01a.in regress.01b.in regress.02.out regress.02a.in regress.02b.in regress.sh regress.t Log: SVN rev 211428 on 2010-08-17 15:02:33Z by jh MFC r200442: Don't read the newline character to line buffer because lines are passed to wcscoll(3). Newline characters could cause incorrect results when comparing lines. Also, if an input line didn't contain a newline character, it was omitted from the output. According to my interpretation, SUSv3 requires that the newline is always printed. Add regression tests for the cases. PR: bin/140976 MFC r200604: - Prevent overflowing of the buffer length variable in getline() by limiting its maximum value. - Exit if reallocf(3) fails in getline(). Failure was silently considered as end-of-file. MFC r204896 by ache: Rewrite input processing to not exit with error on the first EILSEQ found in the input data but fallback to "binary comparison" instead. POSIX says: "The input files shall be text files", nothing more, so the text file with illegal sequence is valid input. BTW, GNU sort does not fails on EILSEQ too. MFC r204928 by ache: Add SIZE_MAX overflow check Revision Changes Path 1.13.2.3 +1 -1 src/tools/regression/usr.bin/Makefile 1.1.2.2 +4 -0 src/tools/regression/usr.bin/comm/Makefile (new) 1.1.2.2 +2 -0 src/tools/regression/usr.bin/comm/regress.00.out (new) 1.1.2.2 +5 -0 src/tools/regression/usr.bin/comm/regress.00a.in (new) 1.1.2.2 +2 -0 src/tools/regression/usr.bin/comm/regress.00b.in (new) 1.1.2.2 +2 -0 src/tools/regression/usr.bin/comm/regress.01.out (new) 1.1.2.2 +5 -0 src/tools/regression/usr.bin/comm/regress.01a.in (new) 1.1.2.2 +2 -0 src/tools/regression/usr.bin/comm/regress.01b.in (new) 1.1.2.2 +5 -0 src/tools/regression/usr.bin/comm/regress.02.out (new) 1.1.2.2 +3 -0 src/tools/regression/usr.bin/comm/regress.02a.in (new) 1.1.2.2 +3 -0 src/tools/regression/usr.bin/comm/regress.02b.in (new) 1.1.2.2 +13 -0 src/tools/regression/usr.bin/comm/regress.sh (new) 1.1.2.2 +6 -0 src/tools/regression/usr.bin/comm/regress.t (new) 1.22.2.2 +72 -107 src/usr.bin/comm/comm.c