linux/drivers/media/platform/vsp1
Kieran Bingham 0766734197 media: vsp1: Protect bodies against overflow
The body write function relies on the code never asking it to write more
than the entries available in the list.

Currently with each list body containing 256 entries, this is fine, but
we can reduce this number greatly saving memory. In preparation of this
add a level of protection to catch any buffer overflows.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-05-25 18:40:19 -04:00
..
Makefile media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00
vsp1.h media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00
vsp1_brx.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_brx.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_clu.c media: vsp1: Reword uses of 'fragment' as 'body' 2018-05-25 18:39:54 -04:00
vsp1_clu.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_dl.c media: vsp1: Protect bodies against overflow 2018-05-25 18:40:19 -04:00
vsp1_dl.h media: vsp1: Reword uses of 'fragment' as 'body' 2018-05-25 18:39:54 -04:00
vsp1_drm.c media: v4l: vsp1: Integrate DISCOM in display pipeline 2018-05-17 06:22:08 -04:00
vsp1_drm.h media: v4l: vsp1: Integrate DISCOM in display pipeline 2018-05-17 06:22:08 -04:00
vsp1_drv.c media: vsp1: Move video suspend resume handling to video object 2018-05-25 18:37:32 -04:00
vsp1_entity.c media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00
vsp1_entity.h media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00
vsp1_hgo.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hgo.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hgt.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hgt.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_histo.c media: v4l: vsp1: Reset the crop and compose rectangles in the set_fmt helper 2018-05-17 06:22:08 -04:00
vsp1_histo.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hsit.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hsit.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_lif.c media: v4l: vsp1: Share the CLU, LIF and LUT set_fmt pad operation code 2018-05-17 06:22:08 -04:00
vsp1_lif.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_lut.c media: vsp1: Reword uses of 'fragment' as 'body' 2018-05-25 18:39:54 -04:00
vsp1_lut.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_pipe.c media: vsp1: Move video suspend resume handling to video object 2018-05-25 18:37:32 -04:00
vsp1_pipe.h media: vsp1: Move video suspend resume handling to video object 2018-05-25 18:37:32 -04:00
vsp1_regs.h media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00
vsp1_rpf.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_rwpf.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_rwpf.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_sru.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_sru.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_uds.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_uds.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_uif.c media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00
vsp1_uif.h media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00
vsp1_video.c media: vsp1: Move video suspend resume handling to video object 2018-05-25 18:37:32 -04:00
vsp1_video.h media: vsp1: Move video suspend resume handling to video object 2018-05-25 18:37:32 -04:00
vsp1_wpf.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00