Re: [PATCH v4 1/2] kernel.h: Introduce const_max() for VLA removal

From
Kees Cook <hidden>
Date
2018-03-15 23:49:27
Also in
lkml, netdev
Reply to
Linus Torvalds, 2018-03-15
On Thu, Mar 15, 2018 at 4:46 PM, Linus Torvalds
[off-list ref] wrote:
What I'm *not* so much ok with is "const_max(5,sizeof(x))" erroring
out, or silently causing insane behavior due to hidden subtle type
casts..
Yup! I like it as an explicit argument. Thanks!

-Kees

-- 
Kees Cook
Pixel Security
Thread (19 messages) 19 messages, 5 authors, last reply 2018-03-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help