| Index: ui/display/util/edid_parser.cc
|
| diff --git a/ui/display/util/edid_parser.cc b/ui/display/util/edid_parser.cc
|
| index 5bc2e62a00e051a02fc2ec202ddd5b074c1a0f5e..f72dbca4dce0c9eca925debfeeb2253c91461dd8 100644
|
| --- a/ui/display/util/edid_parser.cc
|
| +++ b/ui/display/util/edid_parser.cc
|
| @@ -235,7 +235,7 @@ bool ParseOutputOverscanFlag(const std::vector<uint8_t>& edid,
|
| // - byte 3: the capability.
|
| unsigned char tag = edid[data_offset] >> 5;
|
| unsigned char payload_length = edid[data_offset] & 0x1f;
|
| - if (data_offset + payload_length > edid.size())
|
| + if (data_offset + payload_length + 1 > edid.size())
|
| break;
|
|
|
| if (tag != kExtendedTag || payload_length < 2 ||
|
|
|