]> git.dujemihanovic.xyz Git - u-boot.git/commit
addrmap: Fix off by one in addrmap_set_entry()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 25 Jul 2023 06:50:40 +0000 (09:50 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 30 Oct 2023 19:32:49 +0000 (15:32 -0400)
commit7dd06b1621579262e5be46d78ba1d63c8afe8040
treea62cfdd1d2bde87f0852a7888300d8df68ea2bdb
parentc594b430225c36189a8fee2a710264d0458dc3d6
addrmap: Fix off by one in addrmap_set_entry()

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@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/addr_map.c