In the v2->v3 change of what would become commit 37676f83
<http://www.seabios.org/pipermail/seabios/2012-December/005166.html>, the
defense against an initial "addr > end" condition ("wraparound") was
erroneously loosened.

Signed-off-by: Laszlo Ersek <ler...@redhat.com>
---
 src/smbios.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/smbios.c b/src/smbios.c
index aaa99bc..23713a2 100644
--- a/src/smbios.c
+++ b/src/smbios.c
@@ -569,8 +569,8 @@ display_uuid(void)
         addr += 2;
     }
 
-    /* parsing finished, UUID not found */
-    if (addr == end)
+    /* parsing finished or skipped entirely, UUID not found */
+    if (addr >= end)
         return;
 
     uuid = (u8 *)(addr + offsetof(struct smbios_type_1, uuid));
-- 
1.7.1


_______________________________________________
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios

Reply via email to