From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 16AA115800A for ; Sat, 5 Aug 2023 23:39:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46CD1E0E6A; Sat, 5 Aug 2023 23:38:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2BA37E0E68 for ; Sat, 5 Aug 2023 23:38:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C4EB340D1D for ; Sat, 5 Aug 2023 23:38:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CE0F7F0A for ; Sat, 5 Aug 2023 23:38:56 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1691258693.5d13985d6ec4ceeced9b9b45f00bc19c69efbb8f.floppym@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: src/ X-VCS-Repository: proj/sandbox X-VCS-Files: src/sandbox.c X-VCS-Directories: src/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 5d13985d6ec4ceeced9b9b45f00bc19c69efbb8f X-VCS-Branch: master Date: Sat, 5 Aug 2023 23:38:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 436e2b06-20ba-4f04-b7aa-c874ebac69a4 X-Archives-Hash: e72353bb6eea2c43b298dbaf9127b732 commit: 5d13985d6ec4ceeced9b9b45f00bc19c69efbb8f Author: gto2023 mailbox org> AuthorDate: Thu Jul 13 11:55:09 2023 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sat Aug 5 18:04:53 2023 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=5d13985d sandbox: prevent possible use of uninitialized members of sandbox_info struct Signed-off-by: gto2023 mailbox.org> Signed-off-by: Mike Gilbert gentoo.org> src/sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sandbox.c b/src/sandbox.c index 802850c..e4e05c8 100644 --- a/src/sandbox.c +++ b/src/sandbox.c @@ -211,7 +211,7 @@ int main(int argc, char **argv) { int sandbox_log_presence = 0; - struct sandbox_info_t sandbox_info; + struct sandbox_info_t sandbox_info = {}; char **sandbox_environ; char **argv_bash = NULL;