[PATCH 0/2] media: s2255: fix marker scan and bounds checks in save_frame
From: Elkin Cruz
Date: Wed Nov 25 2026 - 17:22:31 EST
I am trying out new Clang static analysis checks for kernel bug
classes, and they flagged this code as possibly buggy. The findings
were triaged/fixed and commit descriptions were drafted with help of AI,
then checked against linux-next (not runtime-tested on hardware).
Thanks,
Elkin
Elkin Cruz (2):
media: s2255: validate transfer size, payload, and offset in
save_frame
media: s2255: advance marker pointer and use unaligned reads in
save_frame
drivers/media/usb/s2255/s2255drv.c | 79 +++++++++++++++++++-----------
1 file changed, 50 insertions(+), 29 deletions(-)
--
2.56.1.839.g22a8290db9-goog