summaryrefslogtreecommitdiff
path: root/scripts/extract-fwblobs
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2024-10-15 12:10:31 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2024-10-18 11:43:03 +0300
commit14a22762c3daeac59a5a534e124acbb4d7a79b3a (patch)
tree671c52f257f9a406f663bb0dc27679f562da4d07 /scripts/extract-fwblobs
parent458ea1c0be991573ec436aa0afa23baacfae101a (diff)
downloadlinux-14a22762c3daeac59a5a534e124acbb4d7a79b3a.tar.xz
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 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions