Re: [U-Boot] [PATCH] fdt: Fix string property comparison overflow

2019-01-03 Thread Simon Glass
Hi Teddy, On Fri, 23 Nov 2018 at 19:18, Teddy Reed wrote: > > FDT property searching can overflow when comparing strings. This will > result in undefined behavior. This upstream patch adds checks to assure > property name lengths do not overrun the string region or the totalsize. > > The implemen

[U-Boot] [PATCH] fdt: Fix string property comparison overflow

2018-11-23 Thread Teddy Reed
FDT property searching can overflow when comparing strings. This will result in undefined behavior. This upstream patch adds checks to assure property name lengths do not overrun the string region or the totalsize. The implementation is from upstream dtc: 70166d62a27f libfdt: Safer access to stri

Re: [U-Boot] [PATCH] fdt: Fix string property comparison overflow

2018-06-04 Thread Tom Rini
On Mon, Jun 04, 2018 at 06:42:28AM +0100, Peter Robinson wrote: > On Mon, Jun 4, 2018 at 1:22 AM, Teddy Reed wrote: > > FDT property searching can overflow when comparing strings. This will > > result in undefined behavior. > > > > This check assures that property name lengths do not overrun the s

Re: [U-Boot] [PATCH] fdt: Fix string property comparison overflow

2018-06-04 Thread Teddy Reed
Ignore this patch (re: below Peter's comment). On Mon, Jun 4, 2018 at 1:42 AM, Peter Robinson wrote: > On Mon, Jun 4, 2018 at 1:22 AM, Teddy Reed wrote: >> FDT property searching can overflow when comparing strings. This will >> result in undefined behavior. >> >> This check assures that propert

Re: [U-Boot] [PATCH] fdt: Fix string property comparison overflow

2018-06-03 Thread Peter Robinson
On Mon, Jun 4, 2018 at 1:22 AM, Teddy Reed wrote: > FDT property searching can overflow when comparing strings. This will > result in undefined behavior. > > This check assures that property name lengths do not overrun the string > region or the totalsize. The lib/libfdt is mostly a sync from ups

[U-Boot] [PATCH] fdt: Fix string property comparison overflow

2018-06-03 Thread Teddy Reed
FDT property searching can overflow when comparing strings. This will result in undefined behavior. This check assures that property name lengths do not overrun the string region or the totalsize. Signed-off-by: Teddy Reed --- lib/libfdt/fdt_ro.c | 5 + scripts/dtc/libfdt/fdt.c | 2 ++