[PATCH xorg-server] Fix xf86EdidModes.c: array subscript is above array bounds

Keith Packard keithp at keithp.com
Thu Jul 5 16:37:39 PDT 2012

Torsten Kaiser <just.for.lkml at googlemail.com> writes:

> With this optimization level gcc notices, that the loop in function
> DDCModesFromEstIII() would go until i=5 and j=1 which would result in
> m = (5 * 8) + (7 - 1) = 46, but the array EstIIIModes[] only contains
> 44 elements.

I'd like Adam's opinion; he wrote the original code and is the best
person to verify that this does what the spec requires. On the face of
it, it looks right to me though...

keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120705/60b5375e/attachment.pgp>

More information about the xorg-devel mailing list