diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2022-02-13 23:11:11 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2022-02-13 23:11:11 +0000 |
commit | 87de0daa971d1e149fa18688b4d4d3a82b506252 (patch) | |
tree | 6885809cb8c11fbcf619383cf23082e586184271 /sys/dev/fdt/psci.c | |
parent | 3ff6b8cd53f6ad28574ece1c20aeda7671ec0541 (diff) |
The length value in bpf_movein() is casted to from size_t to u_int
and then rounded before checking. Put the same check before the
calculations to avoid overflow.
Reported-by: syzbot+6f29d23eca959c5a9705@syzkaller.appspotmail.com
OK claudio@
Diffstat (limited to 'sys/dev/fdt/psci.c')
0 files changed, 0 insertions, 0 deletions