[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210804123742.GH1931@kadam>
Date: Wed, 4 Aug 2021 15:37:42 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
Cc: Sakari Ailus <sakari.ailus@...ux.intel.com>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
linux-kernel@...r.kernel.org, Yong Zhi <yong.zhi@...el.com>,
Bingbu Cao <bingbu.cao@...el.com>,
Tianshu Qiu <tian.shu.qiu@...el.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-media@...r.kernel.org, linux-staging@...ts.linux.dev,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2 1/2] media: staging/intel-ipu3: css: Fix wrong size
comparison
I missed that you change < sizeof() to <= sizeof()... Sakari is right
that it should be < sizeof(). <= doesn't work at all ever. If you
wanted a higher limit then the next limit woule be:
if (css->fw->size < struct_size(css->fwp, binary_header, 1))
regards,
dan carpenter
Powered by blists - more mailing lists