Re: [PATCH] vsprintf: Remove accidental VLA usage

From: Andrew Morton
Date: Wed Mar 07 2018 - 19:03:28 EST


On Wed, 7 Mar 2018 15:59:27 -0800 Kees Cook <keescook@xxxxxxxxxxxx> wrote:

> I didn't want to encourage a global macro that _lacked_ the safety
> built into the max*() family, though... thoughts for a reasonable
> approach?

I think SIMPLE_MAX() is OK. Along with one of /* these */ things ;)