chiark / gitweb /
rand.c: Careful range checking on `block' and `mp'.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 12 Sep 2016 21:26:09 +0000 (22:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 13 May 2017 14:38:22 +0000 (15:38 +0100)
commit328e6fc7b17eaeb8708663ae8147db8a958ccda8
tree84028f1d9a9ae09762e06f67b86f2205dda2a544
parent5ec4e0d8db70dd19d6c294092c71e608d2888bb5
rand.c: Careful range checking on `block' and `mp'.

  * For `mp', don't allow the `or' mask to be wider than the requested
    result.

  * For `range', insist that the limit is strictly positive, so that the
    output range is actually inhabited.

These parallel currently unreleased fixes to the underlying library,
which are required for things to work properly; so bump the dependency.
debian/control
rand.c