media: vicodec: ensure comp frame pointer kept in range
authorDafna Hirschfeld <dafna3@gmail.com>
Thu, 24 Jan 2019 09:51:08 +0000 (07:51 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 26 Jan 2019 11:10:26 +0000 (09:10 -0200)
commitf863f222b49a9c7a6cfcc72f1ac74ab14c7a7258
treef759e369b2448a8c499486f4faf396ff2e1f320c
parent3b15f68e19c28a76d175f61943a8c23224afce93
media: vicodec: ensure comp frame pointer kept in range

Make sure that the pointer to the compressed frame does not
get out of the buffer.

Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/codec-fwht.c
drivers/media/platform/vicodec/codec-fwht.h
drivers/media/platform/vicodec/codec-v4l2-fwht.c
drivers/media/platform/vicodec/vicodec-core.c