summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2024-10-15 11:10:31 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2024-10-18 10:43:03 +0200
commit14a22762c3daeac59a5a534e124acbb4d7a79b3a (patch)
tree671c52f257f9a406f663bb0dc27679f562da4d07 /tools/perf/scripts/python/exported-sql-viewer.py
parent458ea1c0be991573ec436aa0afa23baacfae101a (diff)
downloadlinux-stable-14a22762c3daeac59a5a534e124acbb4d7a79b3a.tar.gz
linux-stable-14a22762c3daeac59a5a534e124acbb4d7a79b3a.tar.bz2
linux-stable-14a22762c3daeac59a5a534e124acbb4d7a79b3a.zip
media: s5p-jpeg: prevent buffer overflows
The current logic allows word to be less than 2. If this happens, there will be buffer overflows, as reported by smatch. Add extra checks to prevent it. While here, remove an unused word = 0 assignment. Fixes: 6c96dbbc2aa9 ("[media] s5p-jpeg: add support for 5433") Cc: stable@vger.kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Reviewed-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions