aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <[email protected]>2024-10-15 09:10:31 +0000
committerMauro Carvalho Chehab <[email protected]>2024-10-18 08:43:03 +0000
commit14a22762c3daeac59a5a534e124acbb4d7a79b3a (patch)
tree671c52f257f9a406f663bb0dc27679f562da4d07 /rust/helpers/helpers.c
parentmedia: av7110: fix a spectre vulnerability (diff)
downloadkernel-14a22762c3daeac59a5a534e124acbb4d7a79b3a.tar.gz
kernel-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: [email protected] Signed-off-by: Mauro Carvalho Chehab <[email protected]> Reviewed-by: Jacek Anaszewski <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions