Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2010 15:02:33 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        cvs-src-old@freebsd.org
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 ...
Message-ID:  <201008171503.o7HF3uMU040850@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008171503.o7HF3uMU040850>