Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: dw2102: fix a potential buffer overflow
As pointed by smatch: drivers/media/usb/dvb-usb/dw2102.c:802 su3000_i2c_transfer() error: __builtin_memcpy() '&state->data[4]' too small (64 vs 67) That seemss to be due to a wrong copy-and-paste. Fixes: 0e148a5 ("media: dw2102: Don't translate i2c read into write") Reported-by: Hans Verkuil <[email protected]> Reviewed-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
- Loading branch information