lkml.org 
[lkml]   [2022]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 3/3] fortify: Use SIZE_MAX instead of (size_t)-1
    On Fri, Sep 02, 2022 at 01:43:51PM -0700, Kees Cook wrote:
    > Clean up uses of "(size_t)-1" in favor of SIZE_MAX.
    >
    > Cc: linux-hardening@vger.kernel.org
    > Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
    > Signed-off-by: Kees Cook <keescook@chromium.org>
    > ---
    > include/linux/fortify-string.h | 28 ++++++++++++++--------------
    > 1 file changed, 14 insertions(+), 14 deletions(-)

    *brown paper bag*

    This needs:

    #include <linux/limits.h>

    I will fix it locally...

    --
    Kees Cook

    \
     
     \ /
      Last update: 2022-09-03 00:46    [W:3.507 / U:0.256 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site