[PATCH] mtd: physmap: physmap-bt1-rom: Fix unintentional stack access

Gustavo A. R. Silva gustavo at embeddedor.com
Fri Feb 12 10:18:30 EST 2021



On 2/12/21 08:50, Miquel Raynal wrote:

>> Now, if instead, you first cast ptr to 'char *' and increment it by 1,
>> then it will point to address 101.
> 
> Yep, I got confused with the proper addition compared to dereferencing.

No problem.

> Patch looks legitimate.

Great. :)

Thanks
--
Gustavo



More information about the linux-mtd mailing list