Skip to content
  • Guillem Jover's avatar
    test: Fix explicit_bzero() test on the Hurd · d5865759
    Guillem Jover authored
    
    
    On the Hurd a small read(3) might end up (indirectly) copying the data
    on the stack, which we will end up finding even when we have cleared
    the buffer.
    
    To avoid these side effects, we add a new function, that we force not
    to be inlined, so that we can reuse the same stack space, that will
    blank any possible stack side effects. This should be portable
    regardless of stack growing up or down.
    
    Diagnosis-by: default avatarSamuel Thibault <sthibault@debian.org>
    d5865759
This project is licensed under the BSD 3-Clause "New" or "Revised" License. Learn more