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>
Mon, 12 Sep 2016 21:33:23 +0000 (22:33 +0100)
commitcb08602a0f63aa575c15ec5ff35a5e86fd321522
tree11802d72b7b15f6d235bc5c9de43a3d574337377
parent634f3db3ab49bf84561c9075ced8d2091061b906
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