]> git.baikalelectronics.ru Git - kernel.git/commit
drm: edid: Add bounds checking to HDMI VSDB parsing
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 Aug 2012 14:55:05 +0000 (14:55 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 13 Sep 2012 01:22:30 +0000 (11:22 +1000)
commita5306eddaa22e0c40945c288c71e7c41da69efe6
tree779f70248093e5cb09145544bcc79f423aadc5bb
parenta0cc9a92765176a2ee60be5d0390ad6605670557
drm: edid: Add bounds checking to HDMI VSDB parsing

The length of HDMI VSDB must be at least 5 bytes. Other than the minimum,
nothing else about the length is specified. Check the length before
accessing any additional field beyond the minimum length.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c