Home
last modified time | relevance | path

Searched hist:"90 fe6f8ff00a07641ca893d64f75ca22ce77cca2" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/firmware/
H A Ddmi_scan.cdiff 90fe6f8ff00a07641ca893d64f75ca22ce77cca2 Fri Apr 13 15:37:59 CEST 2018 Jean Delvare <jdelvare@suse.de> firmware: dmi_scan: Fix UUID length safety check

The test which ensures that the DMI type 1 structure is long enough
to hold the UUID is off by one. It would fail if the structure is
exactly 24 bytes long, while that's sufficient to hold the UUID.

I don't expect this bug to cause problem in practice because all
implementations I have seen had length 8, 25 or 27 bytes, in line
with the SMBIOS specifications. But let's fix it still.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: a814c3597a6b ("firmware: dmi_scan: Check DMI structure length")
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>