diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-07-30 02:46:54 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-07-30 02:46:54 +0000 |
commit | 48d38abaae91dcde6ed6fec5475c0c9401026004 (patch) | |
tree | 0f795b2caac8dedbd03b6dff9bdf231cc17b99f2 /lib/libc/arch | |
parent | f1fa260fca4c4bee165b17060b0a322596654d1c (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/libc/arch')
0 files changed, 0 insertions, 0 deletions