commit | b6a6f9490d19317200f2b23a5934ed32797734b8 | [log] [tgz] |
---|---|---|
author | David Gibson <david@gibson.dropbear.id.au> | Wed Sep 27 19:44:50 2017 +1000 |
committer | David Gibson <david@gibson.dropbear.id.au> | Wed Sep 27 20:00:10 2017 +1000 |
tree | 98df3bb09b8cc0a22a7584fa31a83ab7a04c5501 | |
parent | 8c1eb1526d2d02f34bfe6f94dacba60834ae9f79 [diff] |
fdtoverlay: Sanity check blob size The fdtoverlay utility reads in the base fdt blob, then expands it to make room for all the overlays requested. However, it uses the totalsize field of the base blob without verifying that it actually read all of it in (it's possible the blob file could have been truncated). Signed-off-by: David Gibson <david@gibson.dropbear.id.au>