[PATCH] addrmap: Fix off by one in addrmap_set_entry()

Tom Rini trini at konsulko.com
Mon Oct 30 22:36:10 CET 2023


On Tue, Jul 25, 2023 at 09:50:40AM +0300, Dan Carpenter wrote:

> The > comparison needs to be changed to >= to prevent an out of bounds
> write on th next line.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>

While Simon had comments of a more general nature that would be good to
handle, start by taking this fix. Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20231030/266073de/attachment.sig>


More information about the U-Boot mailing list