]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] atomisp: one char read beyond end of string
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 18 May 2017 13:50:19 +0000 (10:50 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 19 May 2017 09:57:29 +0000 (06:57 -0300)
commitd1fec5bdeb18ff98fbe317a9454bcd1fe8da1bee
treed8628712aa094310412b81bf6ed5f17d5a87c35e
parent02d978318b0983e7af6bbc9c1f9861b0d6983e37
[media] atomisp: one char read beyond end of string

We should verify that "ix < max_len" before we test whether we have
reached the NUL terminator.

Fixes: a49d25364dfb ("staging/atomisp: Add support for the Intel IPU v2")
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_include/string_support.h