On Wed, Nov 15, 2017 at 12:54 AM, Nikos Chantziaras <rea...@gmail.com> wrote: > On 14/11/17 19:36, Jorge Almeida wrote: >> >> On Fri, Nov 10, 2017 at 12:09 PM, Jorge Almeida <jjalme...@gmail.com> >> wrote: >>
> > Unless you look at the assembly output, you can't be sure. Some optimization > is done even at -O0. > > I'd stick to using explicit_bzero() which is safe regardless of compiler > vendor *and* version. > But what about overwriting with random bytes? Having "explicit-*" versions of whatnot seems madness. BTW, I checked the assemby, memset() is there. But there should be way to tell the compiler "do what I say". Jorge