]> git.ipfire.org Git - thirdparty/util-linux.git/commit
colcrt: avoid the command getting hung [afl]
authorSami Kerola <kerolasa@iki.fi>
Sat, 2 Apr 2016 15:58:14 +0000 (16:58 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 15 Apr 2016 14:28:00 +0000 (16:28 +0200)
commit8dfe8fe87e7c0d760b12cfc461b5f19248799225
tree8951c84877a56d02bc954945e40ba9e8a27a450a
parent0f2f9fbd886a6418e6475b3c895b7da03462421c
colcrt: avoid the command getting hung [afl]

Some inputs make getwc(3) not to progress file descriptor and neither to
report EILSEQ.  Detect such situation and skip the bad input.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
tests/colcrt [new file with mode: 0755]
tests/expected/colcrt/regressions-hang1 [new file with mode: 0644]
tests/ts/colcrt/hang1 [new file with mode: 0644]
tests/ts/colcrt/regressions
text-utils/colcrt.c