[U-Boot] [PATCH 6/7] fdt_support: Fix buffer overflow in fdt_fixup_memory_banks

Wolfgang Denk wd at denx.de
Mon Feb 21 22:25:54 CET 2011


Dear Kyle Moffett,

In message <1298311199-18775-7-git-send-email-Kyle.D.Moffett at boeing.com> you wrote:
> When fdt_fixup_memory_banks is called with 2-cell address and size
> fields in the device-tree (IE: 64-bit address and size), then it will
> overflow its on-stack "tmp" buffer.
> 
> This fixes the buffer size and adds a comment explaining how many bytes
> need to be allocated per record.
> 
> Signed-off-by: Kyle Moffett <Kyle.D.Moffett at boeing.com>
> ---

This should also submitted as separate patch (as bug fix, actually).

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
Der Irrtum wiederholt sich immerfort in der Tat.  Deshalb muß man das
Wahre unermüdlich in Worten wiederholen.                     - Goethe


More information about the U-Boot mailing list