Fix possible out-of-bound access in shuffle_inrange
commitcd908fab9a9bcea5ebf489a3e98a5f7455e1bd9a
authorAlessio Chiapperini <alessio.chiapperini@nullbuffer.com>
Fri, 21 Jan 2022 10:34:00 +0000 (21 11:34 +0100)
committerAlessio Chiapperini <alessio.chiapperini@nullbuffer.com>
Fri, 21 Jan 2022 10:34:00 +0000 (21 11:34 +0100)
tree6f21eb89d14a173edcdccdae6230f37f3195cb3c
parent93817a856a6023f46bb0c07eca91cebdfa2b207e
Fix possible out-of-bound access in shuffle_inrange

Switch standard (backwards) Fisher-Yates algorithms for the forward
variant to fix possible out-of-bound access in shuffle_inrange:212.
src/shuf.c