diff mbox series

dmicheck: add more checks for invalid serial number string

Message ID 20230406044842.33237-1-ivan.hu@canonical.com
State Accepted
Headers show
Series dmicheck: add more checks for invalid serial number string | expand

Commit Message

ivanhu April 6, 2023, 4:48 a.m. UTC
Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 src/dmi/dmicheck/dmicheck.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c
index a6f19932..7e6f0ec4 100644
--- a/src/dmi/dmicheck/dmicheck.c
+++ b/src/dmi/dmicheck/dmicheck.c
@@ -117,6 +117,10 @@  static const fwts_dmi_pattern dmi_patterns[] = {
 	{ "DMISerialNumber",	"Serial Number",	"01234567890" },
 	{ "DMISerialNumber",	"Serial Number",	"012345678900" },
 	{ "DMISerialNumber",	"Serial Number",	"0123456789000" },
+	{ "DMISerialNumber",	"Serial Number",	"1234567" },
+	{ "DMISerialNumber",	"Serial Number",	"12345678" },
+	{ "DMISerialNumber",	"Serial Number",	"123456789" },
+	{ "DMISerialNumber",	"Serial Number",	"1234567890" },
 	{ "DMISerialNumber",	"Serial Number",	"System Serial Number" },
 	{ "DMISerialNumber",	"Serial Number",	"MB-1234567890" },
 	{ "DMISerialNumber",	"Serial Number",	"NB-1234567890" },