Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: ui/base/x/x11_util.cc

Issue 13648004: Fix silly bugs around overscan flag detection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/x/x11_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util.cc
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
index 35e27636d94ecc64277e39bb17b6605d9166882c..5d37b1d8ae9fbee0c76b1c7f00c18deaa0f207a5 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -1443,14 +1443,14 @@ bool ParseOutputOverscanFlag(const unsigned char* prop,
nitems)
break;
- if (tag != kExtendedTag && payload_length < 2) {
+ if (tag != kExtendedTag || payload_length < 2) {
data_block += payload_length + 1;
continue;
}
unsigned char extended_tag_code = data_block[1];
if (extended_tag_code != kExtendedVideoCapabilityTag) {
- data_block += payload_length;
+ data_block += payload_length + 1;
continue;
}
« no previous file with comments | « no previous file | ui/base/x/x11_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698