diff options
author | Helge Deller <deller@gmx.de> | 2020-08-09 15:35:38 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2020-08-26 23:04:00 +0200 |
commit | a501bfc91763d4642390090dd4e6039d67b63702 (patch) | |
tree | 9f08327c2140d275764971be59ad6511b69a15eb /device_tree.c | |
parent | 8bd0d5b5ef0552d66968a8fdefc5a9080eb358e3 (diff) | |
download | qemu-a501bfc91763d4642390090dd4e6039d67b63702.zip qemu-a501bfc91763d4642390090dd4e6039d67b63702.tar.gz qemu-a501bfc91763d4642390090dd4e6039d67b63702.tar.bz2 |
hw/display/artist: Prevent out of VRAM buffer accesses
Simplify various bounds checks by changing parameters like row and column
numbers to become unsigned instead of signed.
With that we can check if the calculated offset is bigger than the size of the
VRAM region and bail out if not.
Reported-by: LLVM libFuzzer
Reported-by: Alexander Bulekov <alxndr@bu.edu>
Buglink: https://bugs.launchpad.net/qemu/+bug/1880326
Buglink: https://bugs.launchpad.net/qemu/+bug/1890310
Buglink: https://bugs.launchpad.net/qemu/+bug/1890311
Buglink: https://bugs.launchpad.net/qemu/+bug/1890312
Buglink: https://bugs.launchpad.net/qemu/+bug/1890370
Acked-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'device_tree.c')
0 files changed, 0 insertions, 0 deletions