[U-Boot] fdt performance

Wolfgang Denk wd at denx.de
Thu Oct 17 20:55:55 CEST 2013


Dear Aaron Williams,

In message <525F8284.4000304 at caviumnetworks.com> you wrote:
> 
> Some of the checks in fdt_offset_ptr also look useless, such as if 
> ((offset + len) < offset) which will always be false, or
> if (p + len < p)

What happens if the "offset" or "p" point to addresses close to the
upper end of the address space, and adding "len" makes it wrap around?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The more we disagree, the more chance there is that at least  one  of
us is right.


More information about the U-Boot mailing list