From: Zbigniew Jędrzejewski-Szmek Date: Thu, 21 Feb 2019 06:58:24 +0000 (+0100) Subject: Add a work-around for memsan X-Git-Tag: v242-rc1~267 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08995a6b479d50e5233123fa00c2c72c3c235963;p=thirdparty%2Fsystemd.git Add a work-around for memsan Fixes #11735. --- diff --git a/src/basic/xattr-util.c b/src/basic/xattr-util.c index 0ee0979837c..1d045f911b7 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;