Re: [PATCH 1/2] drm/i915/bios: double check array-boundary in parse_sdvo_lvds_data

2024-05-28 Thread Rodrigo Vivi
On Tue, May 28, 2024 at 02:29:00PM +0300, Luca Coelho wrote: > During static analysis, a concern was raised that we may access the > dtd->dtd[] array out of bounds, because we are not checking whether > the index we use is larger than the array. > > This should not be a problem as is, because the

[PATCH 1/2] drm/i915/bios: double check array-boundary in parse_sdvo_lvds_data

2024-05-28 Thread Luca Coelho
During static analysis, a concern was raised that we may access the dtd->dtd[] array out of bounds, because we are not checking whether the index we use is larger than the array. This should not be a problem as is, because the enumeration that is used for this index comes from "panel_type", which