Re: [RFC PATCH v2 05/17] drm/vkms: Avoid reading beyond LUT array

2023-11-06 Thread Harry Wentland
On 2023-10-30 09:29, Pekka Paalanen wrote: > On Thu, 19 Oct 2023 17:21:21 -0400 > Harry Wentland wrote: > >> When the floor LUT index (drm_fixp2int(lut_index) is the last >> index of the array the ceil LUT index will point to an entry >> beyond the array. Make sure we guard against it and use

Re: [RFC PATCH v2 05/17] drm/vkms: Avoid reading beyond LUT array

2023-10-30 Thread Pekka Paalanen
On Thu, 19 Oct 2023 17:21:21 -0400 Harry Wentland wrote: > When the floor LUT index (drm_fixp2int(lut_index) is the last > index of the array the ceil LUT index will point to an entry > beyond the array. Make sure we guard against it and use the > value of the floot LUT index. > > Blurb about LU