diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-01-11 19:46:20 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-01-21 05:17:01 +0100 |
commit | 17df768c1e4580f03301d18ea938d3557d441911 (patch) | |
tree | 550ee7f04ccd65e40adbaad7deef695f8e3059ef /qemu-barrier.h | |
parent | 06dbfc6f8833475065c9cf5fdbdb990dbb4b619b (diff) | |
download | hqemu-17df768c1e4580f03301d18ea938d3557d441911.zip hqemu-17df768c1e4580f03301d18ea938d3557d441911.tar.gz |
load_image_targphys() should enforce the max size
load_image_targphys() gets passed a max size for the file, but doesn't
enforce it at all. Add a check and return -1 (error) if the file is
too big, without loading it. Fix the bracing style in the function
while we're at it.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'qemu-barrier.h')
0 files changed, 0 insertions, 0 deletions