Quantcast
Channel: lkml.org : Shesha Sreenivasamurthy
Viewing all articles
Browse latest Browse all 1267

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

$
0
0
Linus Torvalds writes: (Summary) On Thu, Mar 15, 2018 at 12:47 PM, Kees Cook <keescook@chromium.org> wrote:

[...]

explicitly cast to size_t.
Ugh, I really hate this.
Ugh, I really hate this.
It silently does insane things if you do
It silently does insane things if you do
const_max(-1,6)
const_max(-1,6)
and there is nothing in the name that implies that you can't use negative constants.
negative constants.
Linus
Linus
Linus

Viewing all articles
Browse latest Browse all 1267

Trending Articles