diff options
author | Mauro Carvalho Chehab <[email protected]> | 2024-10-15 11:10:31 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2024-10-18 10:43:03 +0200 |
commit | 14a22762c3daeac59a5a534e124acbb4d7a79b3a (patch) | |
tree | 671c52f257f9a406f663bb0dc27679f562da4d07 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 458ea1c0be991573ec436aa0afa23baacfae101a (diff) |
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 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions