]> git.ipfire.org Git - thirdparty/coreutils.git/commit
shuf: do not mishandle 'shuf -i0-0 1'
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 6 Jan 2015 03:40:03 +0000 (19:40 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 6 Jan 2015 03:40:21 +0000 (19:40 -0800)
commit63bc65fbe7ae850a03e0f343cf922767b4faf3ab
treea5bcb0ad5c383ad0b9ac94fda6ba903df3c895a0
parent7f235156bcf644c4cccc5670f0468d89c64b822d
shuf: do not mishandle 'shuf -i0-0 1'

Problem reported by Daiki Ueno in: http://bugs.gnu.org/19520
* src/shuf.c (main): Avoid core dump if !input_range.
* tests/misc/shuf.sh: Test for this bug.
src/shuf.c
tests/misc/shuf.sh