Samuel Holland f2a2765625 fdt: Fix bounds check in devfdt_get_addr_index
reg must contain enough cells for the entire next address/size pair
after skipping `index` pairs. The previous code allows an out-of-bounds
read when na + ns > 1.

Series-to: Simon Glass <sjg@chromium.org>

Fixes: 69b41388ba45 ("dm: core: Add a new api to get indexed device address")
Signed-off-by: Samuel Holland <samuel@sholland.org>
2022-10-31 21:52:39 -05:00
..
2022-04-25 09:25:00 +02:00
2022-09-25 08:30:05 -06:00
2022-10-24 10:04:30 -04:00
2021-10-05 08:50:15 -04:00
2022-09-16 11:05:16 -04:00
2022-08-04 16:18:47 -04:00
2022-01-13 07:57:49 -05:00
2022-10-26 15:21:12 -04:00
2022-01-13 07:57:49 -05:00
2022-10-21 16:04:39 -04:00
2022-09-19 16:07:12 -04:00
2022-10-19 14:15:02 +01:00
2022-09-16 11:05:16 -04:00
2022-10-11 16:03:03 -04:00
2022-09-03 16:59:05 +03:00
2022-05-03 21:39:22 +02:00