Re: [PATCH] fdt: change splicing offset detection

2022-10-21 Thread Simon Glass
Hi Elijah, On Sun, 25 Sept 2022 at 22:30, Elijah Conners wrote: > > In fdt_rw.c, -FDT_ERR_BADOFFSET is returned when either the sum of the > old > length and the splice point are less than the splice point, or when the > sum of the old length and the splice point exceed the end of the > pointer.

[PATCH] fdt: change splicing offset detection

2022-09-26 Thread Elijah Conners
In fdt_rw.c, -FDT_ERR_BADOFFSET is returned when either the sum of the old length and the splice point are less than the splice point, or when the sum of the old length and the splice point exceed the end of the pointer. Adding an int and a pointer may result in a pointer overflow, an undefined beh