commit | 215d832d964648536d1ffd81219dc0f80ca30479 | [log] [tgz] |
---|---|---|
author | Kyle Moffett <Kyle.D.Moffett@boeing.com> | Wed Feb 23 06:18:24 2011 +0000 |
committer | Gerald Van Baren <gvb@unssw.com> | Sun Apr 17 21:08:41 2011 -0400 |
tree | adae07a5ad3c6ba229830445e8a41208416e267c | |
parent | 4816b13d8b542487a7eee0917adb7de59afc8eb7 [diff] |
fdt_support: Fix buffer overflow in fdt_fixup_memory_banks 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@boeing.com> Cc: Jerry Van Baren <vanbaren@cideas.com> Acked-by: Gerald Van Baren <vanbaren@cideas.com>