]> mj.ucw.cz Git - edid.git/commitdiff
Fixed buffer overrun in block map parser
authorMartin Mares <mj@ucw.cz>
Sun, 8 Nov 2015 12:57:17 +0000 (13:57 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 8 Nov 2015 12:57:17 +0000 (13:57 +0100)
edid.c

diff --git a/edid.c b/edid.c
index c83335b6c5b6cf83e9c424f265ba628ca69e6239..b41f9de1a8d94e7dc3d12b62c8c028cb692b0c5f 100644 (file)
--- a/edid.c
+++ b/edid.c
@@ -428,7 +428,7 @@ show_edid(void)
 
 static void ext_block_map(void)
 {
-  for (uns i=1; i<=0xfe; i++)
+  for (uns i=1; i<=0x7e; i++)
     if (edid[i])
       printf("Block %u: extension %u\n", i, edid[i]);
 }