Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 281fda27673f833a01d516658a64d22a32c8e072 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 <[email protected]> Reviewed-by: David Gstir <[email protected]> [lizf: Backported to 3.4: use dbg_err() instead of ubi_err()]; Signed-off-by: Zefan Li <[email protected]>
- Loading branch information