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 83F8F80866; Wed, 10 Aug 2022 00:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1660091570; bh=UAM+iegT+0YgZACF4mFDrxf/kclbwpYnTqerz3nIjfg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AkqJeGy2RbvDIf9YjRMLGCA5AguQ1iW2wdWjBStKv/ZH7xYO8A459Ta8i2C/jrY2W WaMyjf0VQ6HVQ7Nzq0d2ALE1Z0DoRdKyhdLglEqPwv/EBo7tTsZFEIh7Z2n+TdpMzl /yvSelRATGPH5OyKkYWBK9LQIl2oOkcPVWUIFXkLNpLL6tedIXR77a99/ootBsIA5G AViFowLr48fVtZGL9oxAcX0UjJw4Tc1CDYxuOJ2U1PNNaegOhyr0VHLFwjPnm9SeL6 iwkZILYphXSVShM8Ms8t6N8oNpi1ymo2zWFA+8d4HfFZMBwFDnr1zDSdLgOwNvbO9c 8vRMugeME8yUA== 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 09/10] test/eventfd-disable: Fix reading uninitialized variable Date: Wed, 10 Aug 2022 07:31:58 +0700 Message-Id: <20220810002735.2260172-10-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: ==2256099== Conditional jump or move depends on uninitialised value(s) ==2256099== at 0x109DF5: main (eventfd-disable.c:136) Link: https://github.com/axboe/liburing/issues/640 Reported-by: Vitaly Chikunov Signed-off-by: Ammar Faizi --- test/eventfd-disable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/eventfd-disable.c b/test/eventfd-disable.c index 2c8cf6d..9de2465 100644 --- a/test/eventfd-disable.c +++ b/test/eventfd-disable.c @@ -21,7 +21,7 @@ int main(int argc, char *argv[]) struct io_uring_sqe *sqe; struct io_uring_cqe *cqe; struct io_uring ring; - uint64_t ptr; + uint64_t ptr = 0; struct iovec vec = { .iov_base = &ptr, .iov_len = sizeof(ptr) -- Ammar Faizi