lkml.org 
[lkml]   [2018]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRE: [PATCH v6] kernel.h: Retain constant expression output for max()/min()
    Date
    From: Kees Cook
    > Sent: 26 March 2018 23:16
    ...
    > +#define __typecheck(x, y) \
    > + (!!(sizeof((typeof(x)*)1 == (typeof(y)*)1)))

    The two 1 should probably be at least 8 before the compiler starts
    bleating about accesses to misaligned addresses being undefined.

    David

    \
     
     \ /
      Last update: 2018-03-27 10:55    [W:4.312 / U:0.192 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site