lkml.org 
[lkml]   [2020]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC] saturate check_*_overflow() output?
    On Wed, Aug 05, 2020 at 01:38:58PM +0200, Rasmus Villemoes wrote:
    > Anyway, we don't need to apply it to the last expression inside ({}), we
    > can just pass the whole ({}) to must_check_overflow() as in
    >
    > -#define check_sub_overflow(a, b, d) ({ \
    > +#define check_sub_overflow(a, b, d) must_check_overflow(({ \

    Oh! Yes, of course. I was blinded by looking inside the macro and not
    wanting to spoil the type magic. Yes, that's perfect. I will spin a
    patch...

    --
    Kees Cook

    \
     
     \ /
      Last update: 2020-08-05 22:50    [W:3.865 / U:1.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site