Date: Tue, 17 Aug 2010 15:07:23 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/uniq uniq.c Message-ID: <201008171507.o7HF7WvC041142@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jh 2010-08-17 15:07:23 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) usr.bin/uniq uniq.c Log: SVN rev 211429 on 2010-08-17 15:07:23Z by jh MFC r200633: Sync getline() with comm(1): - 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 r204803 by ache: 1) Rewrite input processing to not exit with error on the first EILSEQ found in the input data but fallback to "binary equal" check instead. POSIX says: "The input file shall be a text file", nothing more, so the text file with illegal sequence is valid input. BTW, GNU sort does not fails on EILSEQ too. 2) Speedup input processing a bit in complex cases like skipping fields, chars or ignore case. 3) Enforce the implied LINE_MAX limit (from POSIX definition of "text file" and POSIX uniq(1) description). MFC r204811 by ache: Remove vestiges of old %-format which prevents build on amd64 MFC r204876 by ache: 1) Reimplement (differently) unlimited line length restricted in prev. commit. 2) Honor missing the very last \n (if absent) on output. MFC r204927 by ache: Add SIZE_MAX overflow check Revision Changes Path 1.30.2.2 +85 -105 src/usr.bin/uniq/uniq.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008171507.o7HF7WvC041142>