Skip to content

Commit

Permalink
Add more descriptor pad checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
anholt committed Sep 24, 2007
1 parent 65a379a commit 30407a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ detailed_block(unsigned char *x)
x[2]);
has_valid_descriptor_pad = 0;
}
if (x[3] != 0xfd && x[4] != 0x00) {
/* 1.3, 3.10.3 */
printf("Monitor descriptor block has byte 4 nonzero (0x%02x)\n",
x[4]);
has_valid_descriptor_pad = 0;
}

seen_non_detailed_descriptor = 1;
if (x[3] <= 0xF) {
Expand Down

0 comments on commit 30407a6

Please sign in to comment.