[PATCH] dmicheck: fix the wrong size check for type 4
Ivan Hu
ivan.hu at canonical.com
Tue Dec 3 03:52:36 UTC 2024
BugLink: https://bugs.launchpad.net/fwts/+bug/2089853
Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
src/dmi/dmicheck/dmicheck.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c
index 597c4ba7..702021f9 100644
--- a/src/dmi/dmicheck/dmicheck.c
+++ b/src/dmi/dmicheck/dmicheck.c
@@ -294,13 +294,14 @@ static const fwts_dmi_type_length type_info[] = {
{ 1, 0x201, 0x200, 0x8 },
{ 1, 0x204, 0x201, 0x19 },
{ 1, MAX_VERSION, 0x204, 0x1b },
- { 4, 0x203, 0x200, 0x1a },
+ { 4, 0x201, 0x200, 0x1a },
+ { 4, 0x203, 0x201, 0x20 },
{ 4, 0x205, 0x203, 0x23 },
{ 4, 0x206, 0x205, 0x28 },
{ 4, 0x300, 0x206, 0x2a },
{ 4, 0x306, 0x300, 0x30 },
- { 4, 0x308, 0x306, 0x33 },
- { 4, MAX_VERSION, 0x308, 0x34 },
+ { 4, 0x308, 0x306, 0x32 },
+ { 4, MAX_VERSION, 0x308, 0x33 },
{ 7, 0x201, 0x200, 0x0f },
{ 7, 0x301, 0x201, 0x13 },
{ 7, MAX_VERSION, 0x301, 0x1b },
--
2.34.1
More information about the fwts-devel
mailing list