mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 23:32:39 +00:00
Commit40e261b89b(lib/LzmaEnc: Validate "len" before subtracting) ensures that the variable len is at least 2. As a result, GetLenToPosState(len) never returns a value greater than or equal to kNumLenToPosStates, making the changes introduced in the commit16c0dbf4bc(lzma: Make sure we don't dereference past array) unreachable and no longer necessary. This reverts commit16c0dbf4bc(lzma: Make sure we don't dereference past array). Fixes: CID 481982 Signed-off-by: Lidong Chen <lidong.chen@oracle.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>