summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-07-30 02:46:54 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-07-30 02:46:54 +0000
commit48d38abaae91dcde6ed6fec5475c0c9401026004 (patch)
tree0f795b2caac8dedbd03b6dff9bdf231cc17b99f2 /lib
parentf1fa260fca4c4bee165b17060b0a322596654d1c (diff)
Do bounds check before assignment
As reported by alf (alf.schlichting lemarit com) on bugs@, a bounds check didn't trigger because it was performed after assignment, so truncation would happen for large ranges. Fix this and clean up and simplify the code a bit. ok deraadt millert
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions