From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from integral2.. (unknown [180.246.144.41]) by gnuweeb.org (Postfix) with ESMTPSA id D3FEE807CA; Wed, 10 Aug 2022 00:32:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1660091562; bh=2+2WbL9YQE9VVPKsr5JbG+UxqwYgXsXaBDlTThv95To=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eJLp6Zm8LXtI2WkM2BJ/tefd5jKN/5KKOROYcooCUnSebPzdfGQw2kppPH6+6K6eH bRMX7h7drssL1iWyQC2/hguGTK7JEynzIV0VJxvvQYduN4dG0EZyvphRvgdugfyedW r1qjcSdkdlXNLiSqnceVJugHZvWshzZVSaz/+DG/rrs+ry8IKJMO1Mv9RwCEs22M0M UDzSMmbIvXaQ0T6wElC+PU6K2FFRWdxtij/32VRizHcQ1eBN55r87erdmlwoeNW4Wp qhm0OEfwE07iB0tJRs3248YW4an+QPp5tb9BFYQfiAZZud+tnL1DuesZLTmTJBW8Wn zPNnOvMY3fU4g== From: Ammar Faizi To: Jens Axboe Cc: Ammar Faizi , Vitaly Chikunov , Fernanda Ma'rouf , Kanna Scarlet , io-uring Mailing List , GNU/Weeb Mailing List Subject: [PATCH liburing v1 06/10] test/statx: Fix reading from uninitialized buffer Date: Wed, 10 Aug 2022 07:31:55 +0700 Message-Id: <20220810002735.2260172-7-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220810002735.2260172-1-ammar.faizi@intel.com> References: <20220810002735.2260172-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Ammar Faizi Fix this: ==3062618== Conditional jump or move depends on uninitialised value(s) ==3062618== at 0x484D65E: bcmp (vg_replace_strmem.c:1129) ==3062618== by 0x109304: test_statx (statx.c:71) ==3062618== by 0x109304: main (statx.c:149) Link: https://github.com/axboe/liburing/issues/640 Reported-by: Vitaly Chikunov Signed-off-by: Ammar Faizi --- test/statx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/statx.c b/test/statx.c index 5fa086e..4ae3452 100644 --- a/test/statx.c +++ b/test/statx.c @@ -40,7 +40,7 @@ static int test_statx(struct io_uring *ring, const char *path) { struct io_uring_cqe *cqe; struct io_uring_sqe *sqe; - struct statx x1, x2; + struct statx x1 = { }, x2 = { }; int ret; sqe = io_uring_get_sqe(ring); -- Ammar Faizi