diff options
author | NeilBrown <neilb@suse.de> | 2014-07-10 15:59:06 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-07-10 15:59:06 +1000 |
commit | 1f17f96b538793a0e665e471f602c6fa490ec167 (patch) | |
tree | e2f88cd10208c5f3899d6d1ecf28789bfa3e66f8 /super-intel.c | |
parent | 5fe6f031d9a21a935f0ef1b1fbdb314b53f2199f (diff) |
DDF: validate metadata_update size before using it.
process_update already checks update->len, for all but
the 'magic', prepare_update doesn't at all.
So add tests to prepare_update that we don't exceed the buffer.
This will consequently protect process_update from looking
for a 'magic' which isn't there.
Reported-by: Vincent Berg <vberg@ioactive.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
0 files changed, 0 insertions, 0 deletions