Skip to content
Snippets Groups Projects
Commit d13ffa66 authored by Kyle Moffett's avatar Kyle Moffett Committed by Gerald Van Baren
Browse files

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: default avatarKyle Moffett <Kyle.D.Moffett@boeing.com>
Cc: Jerry Van Baren <vanbaren@cideas.com>
Acked-by: default avatarGerald Van Baren <vanbaren@cideas.com>
parent 73e5476e
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment