]> 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>
Wed, 13 Apr 2016 10:29:16 +0000 (12:29 +0200)
commit962a7dc3b0372d718e1686a2d5734cbde4713cab
tree953916031b9311d022ab2d60814d8beb7dfe20c8
parent2238214ddc81d8ecab386d9e38d68f9357e2ad74
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