Skip to content
Commit 0ef11f60 authored by Jean Delvare's avatar Jean Delvare
Browse files

firmware: dmi: Stop decoding on broken entry



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>
parent cf770af5
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