]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
misc: fix valgrind complaints
authorDarrick J. Wong <djwong@kernel.org>
Fri, 12 Feb 2021 22:23:05 +0000 (17:23 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 12 Feb 2021 22:23:05 +0000 (17:23 -0500)
commitbbfbf5ddfed8f9c8b0cd0389750d044faa9d7895
treee4734645810a1a528943fe6fcb8ed9c3b9162abf
parent08f24589160f7d00479b03a9fbf5ff6640b644b7
misc: fix valgrind complaints

Zero the memory that we pass to the kernel via ioctls so that we never
pass userspace heap/stack garbage around.  This silences valgrind
complaints about uninitialized padding areas.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libhandle/handle.c
scrub/inodes.c
scrub/spacemap.c