From 08995a6b479d50e5233123fa00c2c72c3c235963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 21 Feb 2019 07:58:24 +0100 Subject: [PATCH] Add a work-around for memsan Fixes #11735. --- src/basic/xattr-util.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/basic/xattr-util.c b/src/basic/xattr-util.c index 0ee0979837..1d045f911b 100644 --- a/src/basic/xattr-util.c +++ b/src/basic/xattr-util.c @@ -140,7 +140,12 @@ static int parse_crtime(le64_t le, usec_t *usec) { } int fd_getcrtime_at(int dirfd, const char *name, usec_t *ret, int flags) { - struct_statx sx; + struct_statx sx +#if HAS_FEATURE_MEMORY_SANITIZER + = {} +# warning "Explicitly initializing struct statx, to work around msan limitation. Please remove as soon as msan has been updated to not require this." +#endif + ; usec_t a, b; le64_t le; size_t n;