Re: [PATCH] mtd: spi-nor: sfdp: Fix out of bound array access

2021-03-07 Thread Tudor.Ambarus
On 2/19/21 9:50 AM, Mathieu Dubois-Briand wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Hi, > > I just came across this commit (9166f4af32db) in spi-nor/for-5.12: > https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git/commit/?h

Re: [PATCH] mtd: spi-nor: sfdp: Fix out of bound array access

2021-02-18 Thread Mathieu Dubois-Briand
Hi, I just came across this commit (9166f4af32db) in spi-nor/for-5.12: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git/commit/?h=spi-nor/for-5.12&id=9166f4af32db74e1544a2149aef231ff24515ea3. So I believe this patch isn't needed anymore. Thanks, Mathieu

Re: [PATCH] mtd: spi-nor: sfdp: Fix out of bound array access

2021-02-15 Thread Pratyush Yadav
On 12/02/21 04:47PM, Mathieu Dubois-Briand wrote: > Fix array index: explicitly use the array length to access the last > element, instead of an incorrectly set iteration variable. > > It seems this code was correct before following commit, were the > iteration counter is reused, leading to a valu

[PATCH] mtd: spi-nor: sfdp: Fix out of bound array access

2021-02-12 Thread Mathieu Dubois-Briand
Fix array index: explicitly use the array length to access the last element, instead of an incorrectly set iteration variable. It seems this code was correct before following commit, were the iteration counter is reused, leading to a value that may be out of bound. Fixes: dc92843159a7 ("mtd: spi-n