mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-07 17:52:34 +01:00
test: Disable blank_stack_side_effects() on non-Hurd systems
This code was added to cope with Hurd specific behavior, but it is causing flakiness on containers on some Linux systems. Only enable it where it is currently needed to try to get stability back on CI systems. Closes: #14
This commit is contained in:
parent
ca3db5e134
commit
07192b31e3
@ -138,7 +138,7 @@ populate_secret(char *buf, ssize_t len)
|
||||
static void __attribute__((__noinline__))
|
||||
blank_stack_side_effects(char *buf, size_t len)
|
||||
{
|
||||
#ifndef __SANITIZE_ADDRESS__
|
||||
#if defined(__GNU__) && !defined(__SANITIZE_ADDRESS__)
|
||||
char scratch[SECRETBYTES * 4];
|
||||
|
||||
/* If the read(3) in populate_secret() wrote into the stack, as it
|
||||
|
Loading…
Reference in New Issue
Block a user