Re: [PATCH] ipw2x00: Avoid field-overflowing memcpy()

From: Kees Cook
Date: Fri Aug 06 2021 - 18:30:21 EST


On Fri, Aug 06, 2021 at 01:08:55PM -0700, Kees Cook wrote:
> - if (element_info == NULL)
> + if (!element_info || info_element || info_element->len != size - 2)
> return -1;
> - if (info_element == NULL)
> - return -1;

Gah, a let a typo in. (should be !info_element.) v2 coming...

--
Kees Cook