From unknown Sat Jun 14 14:25:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#77815 <77815@debbugs.gnu.org> To: bug#77815 <77815@debbugs.gnu.org> Subject: Status: [PATCH 1/1] initialize env_argc & env_argv Reply-To: bug#77815 <77815@debbugs.gnu.org> Date: Sat, 14 Jun 2025 21:25:22 +0000 retitle 77815 [PATCH 1/1] initialize env_argc & env_argv reassign 77815 gzip submitter 77815 Christian Hesse severity 77815 normal tag 77815 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 15 00:43:23 2025 Received: (at submit) by debbugs.gnu.org; 15 Apr 2025 04:43:24 +0000 Received: from localhost ([127.0.0.1]:50067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u4Y8p-0001Zv-4C for submit@debbugs.gnu.org; Tue, 15 Apr 2025 00:43:23 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58796) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u4MKz-0004EK-4m for submit@debbugs.gnu.org; Mon, 14 Apr 2025 12:07:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u4MKh-0000DG-Sk for bug-gzip@gnu.org; Mon, 14 Apr 2025 12:06:51 -0400 Received: from mx.mylinuxtime.de ([46.4.70.188]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u4MKZ-0007km-KJ for bug-gzip@gnu.org; Mon, 14 Apr 2025 12:06:50 -0400 Received: from leda.eworm.de (unknown [185.209.196.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 1E15A26038C; Mon, 14 Apr 2025 18:06:27 +0200 (CEST) Authentication-Results: mx.mylinuxtime.de; auth=pass smtp.auth=smtp-only@eworm.de smtp.mailfrom=eworm@leda.eworm.de Received: by leda.eworm.de (Postfix, from userid 1000) id DE161181633; Mon, 14 Apr 2025 18:06:26 +0200 (CEST) From: Christian Hesse To: bug-gzip@gnu.org Subject: [PATCH 1/1] initialize env_argc & env_argv Date: Mon, 14 Apr 2025 18:05:50 +0200 Message-ID: <20250414160550.381562-1-mail@eworm.de> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: / X-Stat-Signature: rkct9pn1zsm7xkiip3yruyshdqgmze7y X-Spam-Status: No, score=0.00 X-Spamd-Result: default: False [0.00 / 15.00] X-Rspamd-Server: mx X-Rspamd-Queue-Id: 1E15A26038C X-Rspamd-Action: no action Received-SPF: pass client-ip=46.4.70.188; envelope-from=eworm@leda.eworm.de; helo=mx.mylinuxtime.de X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 4.5 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: ... as the compiler complains: gzip.c: In function 'main': gzip.c:465:24: error: 'env_argc' may be used uninitialized [-Werror=maybe-uninitialized] 465 | optc = getopt_long (env_argc, env_argv, shortopts, longopts, | ^ gzip.c:413:9 [...] Content analysis details: (4.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.209.196.175 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 15 Apr 2025 00:43:21 -0400 Cc: Christian Hesse X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: ... as the compiler complains: gzip.c: In function 'main': gzip.c:465:24: error: 'env_argc' may be used uninitialized [-Werror=maybe-uninitialized] 465 | optc = getopt_long (env_argc, env_argv, shortopts, longopts, | ^ gzip.c:413:9 [...] Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.209.196.175 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager ... as the compiler complains: gzip.c: In function 'main': gzip.c:465:24: error: 'env_argc' may be used uninitialized [-Werror=maybe-uninitialized] 465 | optc = getopt_long (env_argc, env_argv, shortopts, longopts, | ^ gzip.c:413:9: note: 'env_argc' was declared here 413 | int env_argc; | ^ lto1: all warnings being treated as errors --- gzip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gzip.c b/gzip.c index 913fafe..65aa1ed 100644 --- a/gzip.c +++ b/gzip.c @@ -410,8 +410,8 @@ int main (int argc, char **argv) int file_count; /* number of files to process */ size_t proglen; /* length of program_name */ char **argv_copy; - int env_argc; - char **env_argv; + int env_argc = 0; + char **env_argv = NULL; EXPAND(argc, argv); /* wild card expansion if necessary */ From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 15 05:31:06 2025 Received: (at 77815) by debbugs.gnu.org; 15 Apr 2025 09:31:06 +0000 Received: from localhost ([127.0.0.1]:50692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u4cdG-0005BV-2x for submit@debbugs.gnu.org; Tue, 15 Apr 2025 05:31:06 -0400 Received: from mx.mylinuxtime.de ([46.4.70.188]:60472) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u4cdE-0005BK-5K for 77815@debbugs.gnu.org; Tue, 15 Apr 2025 05:31:04 -0400 Received: from leda.eworm.net (unknown [185.209.196.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 715EC2656B5 for <77815@debbugs.gnu.org>; Tue, 15 Apr 2025 11:30:31 +0200 (CEST) Authentication-Results: mx.mylinuxtime.de; auth=pass smtp.auth=mail@eworm.de smtp.mailfrom=mail@eworm.de Date: Tue, 15 Apr 2025 11:30:30 +0200 From: Christian Hesse To: 77815@debbugs.gnu.org Subject: Re: [PATCH 1/1] initialize env_argc & env_argv Message-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DaMOhBcTHmAVDxLaBdle93oJy1QKFUh2GXT4am+YH/GGel1CeI98GdMXsytjCKIq/9cMrlgxFCROv+3/BU1fijNpcVD6DxE8VfLBaxUGr1D5usgDYdjwiPAAAAAElFTkSuQmCC MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/oOq/lPWMKj/frNRd35tUBbV"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Spamd-Bar: / X-Stat-Signature: hjgfxdsw446xqq4a99q5z8uaiwctjjx4 X-Spam-Status: No, score=0.00 X-Spamd-Result: default: False [0.00 / 15.00] X-Rspamd-Server: mx X-Rspamd-Queue-Id: 715EC2656B5 X-Rspamd-Action: no action X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Dear gzip maintainers, just found out this is related to link time optimization. If I disable LTO it builds as-is (git master and 1.14), as soon as I enable LTO my patches is required for a successful build. Thanks! -- Best [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [46.4.70.188 listed in sa-accredit.habeas.com] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.209.196.175 listed in zen.spamhaus.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [46.4.70.188 listed in bl.score.senderscore.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-Debbugs-Envelope-To: 77815 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Dear gzip maintainers, just found out this is related to link time optimization. If I disable LTO it builds as-is (git master and 1.14), as soon as I enable LTO my patches is required for a successful build. Thanks! -- Best [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [46.4.70.188 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [46.4.70.188 listed in bl.score.senderscore.com] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.209.196.175 listed in zen.spamhaus.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --Sig_/oOq/lPWMKj/frNRd35tUBbV Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Dear gzip maintainers, just found out this is related to link time optimization. If I disable LTO = it builds as-is (git master and 1.14), as soon as I enable LTO my patches is required for a successful build. Thanks! --=20 Best regards, Chris --Sig_/oOq/lPWMKj/frNRd35tUBbV Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSmOl3fryo2Nzt8CpJOj8ol/axIVQUCZ/4nNgAKCRBOj8ol/axI VSzrAQD5TdzwC6c17zCh5uOvh8xlMUP34DYcrL74nIfBBYT+wwEAsyxBuL2nQX9b zmWBA4xvMcisXLNXSgFfCD1LonI8fQc= =8w7q -----END PGP SIGNATURE----- --Sig_/oOq/lPWMKj/frNRd35tUBbV--