-
Richard Weinberger authored
commit 281fda27 upstream. Make sure that data_size is less than LEB size. Otherwise a handcrafted UBI image is able to trigger an out of bounds memory access in ubi_compare_lebs(). Signed-off-by:
Richard Weinberger <richard@nod.at> Reviewed-by:
David Gstir <david@sigma-star.at> [lizf: Backported to 3.4: use dbg_err() instead of ubi_err()]; Signed-off-by:
Zefan Li <lizefan@huawei.com>
15acb368