Thread (3 messages) flat view 3 messages, 2 authors, 2021-08-07

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

From: Kees Cook <hidden>
Date: 2021-08-06 22:30:21
Also in: linux-hardening, lkml, netdev

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help