aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-parse-edid
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-02-25 09:52:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-02-25 09:52:14 +0000
commit16232015c95d30c09e140fe2cf699c8749bb5754 (patch)
tree2902c490fd62f257172db13a1da66bbfd5ca26cf /monitor-parse-edid
parent6bc4442761379fdd12c9bb5526373985b4988ec2 (diff)
downloadmonitor-edid-16232015c95d30c09e140fe2cf699c8749bb5754.tar
monitor-edid-16232015c95d30c09e140fe2cf699c8749bb5754.tar.gz
monitor-edid-16232015c95d30c09e140fe2cf699c8749bb5754.tar.bz2
monitor-edid-16232015c95d30c09e140fe2cf699c8749bb5754.tar.xz
monitor-edid-16232015c95d30c09e140fe2cf699c8749bb5754.zip
don't accept bad detailed_timings
Diffstat (limited to 'monitor-parse-edid')
-rwxr-xr-xmonitor-parse-edid4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor-parse-edid b/monitor-parse-edid
index bd90b5d..d582a0e 100755
--- a/monitor-parse-edid
+++ b/monitor-parse-edid
@@ -155,7 +155,9 @@ sub parse_edid {
my $hi = delete($h->{$field . '_hi'});
$h->{$field} += $hi << $detailed_timing_field_size{$field};
}
- push @{$edid{detailed_timings}}, $h;
+ push @{$edid{detailed_timings}}, $h
+ if $h->{horizontal_active} > 0
+ && $h->{vertical_active} > 0;
} else {
(my $flag, $vv) = unpack("n x a*", $vv);