diff options
author | 2023-06-25 00:16:49 +0800 | |
---|---|---|
committer | 2023-06-24 21:55:11 +0200 | |
commit | c2d22806aecb24e2de55c30a06e5d6eb297d161d (patch) | |
tree | 6430650d618a7f86bf428e942cb7bfbf3f1b1d3c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | MAINTAINERS: adjust entry in VIA UNICHROME(PRO)/CHROME9 FRAMEBUFFER DRIVER (diff) | |
download | wireguard-linux-c2d22806aecb24e2de55c30a06e5d6eb297d161d.tar.xz wireguard-linux-c2d22806aecb24e2de55c30a06e5d6eb297d161d.zip |
fbdev: fix potential OOB read in fast_imageblit()
There is a potential OOB read at fast_imageblit, for
"colortab[(*src >> 4)]" can become a negative value due to
"const char *s = image->data, *src".
This change makes sure the index for colortab always positive
or zero.
Similar commit:
https://patchwork.kernel.org/patch/11746067
Potential bug report:
https://groups.google.com/g/syzkaller-bugs/c/9ubBXKeKXf4/m/k-QXy4UgAAAJ
Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions