Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b0f4f0d2 authored by Jean Delvare's avatar Jean Delvare Committed by Vegard Nossum
Browse files

firmware: dmi: Stop decoding on broken entry



[ Upstream commit 0ef11f604503b1862a21597436283f158114d77e ]

If a DMI table entry is shorter than 4 bytes, it is invalid. Due to
how DMI table parsing works, it is impossible to safely recover from
such an error, so we have to stop decoding the table.

Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
Link: https://lore.kernel.org/linux-kernel/Zh2K3-HLXOesT_vZ@liuwe-devbox-debian-v2/T/


Reviewed-by: default avatarMichael Kelley <mhklinux@outlook.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit c2a350a3fa622a174e3704691d05989cdfde4d51)
Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
parent fca275da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment