Re: [PATCH 1/4] drm/displayid: add displayid_get_header() and check bounds better

2023-02-21 Thread Dmitry Osipenko
On 2/16/23 23:44, Jani Nikula wrote: > Add a helper to get a pointer to struct displayid_header. To be > pedantic, add buffer overflow checks to not touch the base if that > itself would overflow. > > Cc: Iaroslav Boliukin > Cc: Dmitry Osipenko > Signed-off-by: Jani Nikula > --- >

[PATCH 1/4] drm/displayid: add displayid_get_header() and check bounds better

2023-02-16 Thread Jani Nikula
Add a helper to get a pointer to struct displayid_header. To be pedantic, add buffer overflow checks to not touch the base if that itself would overflow. Cc: Iaroslav Boliukin Cc: Dmitry Osipenko Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_displayid.c | 17 - 1 file