From unknown Mon Jun 16 23:50:03 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#34167 <34167@debbugs.gnu.org> To: bug#34167 <34167@debbugs.gnu.org> Subject: Status: build: ensure no VLA is used Reply-To: bug#34167 <34167@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:50:03 +0000 retitle 34167 build: ensure no VLA is used reassign 34167 gzip submitter 34167 Jim Meyering severity 34167 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 21 19:49:55 2019 Received: (at submit) by debbugs.gnu.org; 22 Jan 2019 00:49:55 +0000 Received: from localhost ([127.0.0.1]:40665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glkGI-0007GY-U9 for submit@debbugs.gnu.org; Mon, 21 Jan 2019 19:49:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glkGH-0007GI-Ss for submit@debbugs.gnu.org; Mon, 21 Jan 2019 19:49:54 -0500 Received: from lists.gnu.org ([209.51.188.17]:48764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1glkGC-0001i1-MZ for submit@debbugs.gnu.org; Mon, 21 Jan 2019 19:49:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glkGB-0004YU-Hc for bug-gzip@gnu.org; Mon, 21 Jan 2019 19:49:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glkGA-0001fw-NY for bug-gzip@gnu.org; Mon, 21 Jan 2019 19:49:47 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:44809) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glkGA-0001fP-Gh for bug-gzip@gnu.org; Mon, 21 Jan 2019 19:49:46 -0500 Received: by mail-pl1-x630.google.com with SMTP id e11so10559886plt.11 for ; Mon, 21 Jan 2019 16:49:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=PvcDepPGeutI0tuYOoJVTY08/Z5HlcceeygeEOyKkI8=; b=eOf/UIfyyu7vQV8Etupp4qmXXRJQgtLpzghllzWATOdjRRJy0U/8bKj+BR9g3jey+r 7jg+BSP9IonuHMyN8XdYVGgwPj53lrqaPbLJIWtvuSIy5r9dvtNdHLlKCyWNZ7mikRBR vxxEO8X4Av+WFFcsAdRrJ4En5Buz+DooeX9o6FhWmpifruTH1T/nsT/IKa6gNZJFCeTu CooKzD8GHvbabSaOLm/V6g2I8BXXuzFermhJw2cbYx095CKfO8wilNoAM5F604HeDaDM ZtFSpdTAuSroamfyGvbphyOssf2RIi/2reKYsYB16fA+zYR+aapABT3W3rSwpHlP/Wye sebQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=PvcDepPGeutI0tuYOoJVTY08/Z5HlcceeygeEOyKkI8=; b=deQfc4+EUcKQg6CXSNKAkHtnH10OIVRe0FEZLdylenx+CfVmHSXb+PO0uowQ+kXVNr rpKYPgy13OgpHUGB1W+Qr9uF7HK11rl9jQ7CN0rR/97UVtkTMEbgBbWQZlyJ8gB8fsu3 0Zl9A4OGFyad09IerjgOtrM4RBn+7+iGmDjGKipqIxwI/wnPIhGEOCYoVxeCJdDc8bNB i3rilCFf7jaxEQWSCRiCo+CNh/ey7tfIgudEVsdGw0P9tVHvqLphBipnrCjEpZ+I1I0i 2j0yal6pss0WzISUCJlyzvTDev6VD3wwYSr9/yr7fca70hRunBaCaucZmCn2COwRczLm R3QA== X-Gm-Message-State: AJcUukdb0A4aLIc30Sdn/yumKpFyiBcqndrtI9hP1py6vQRJ4D2J2d+b WMXZSwq+RL39MgObVxWWNtfSEJ2r X-Google-Smtp-Source: ALg8bN70VDLwPIeMkV647aSFF4UWcn/DLSfSMBxSSoIQne9gwxgrhBW/e8LsT5DCDj2WdVmPOLskWg== X-Received: by 2002:a17:902:a710:: with SMTP id w16mr31438577plq.95.1548118185173; Mon, 21 Jan 2019 16:49:45 -0800 (PST) Received: from meyering-mbp ([2620:10d:c090:180::1:22ae]) by smtp.gmail.com with ESMTPSA id x19sm22860600pfk.14.2019.01.21.16.49.43 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 16:49:43 -0800 (PST) From: Jim Meyering To: bug-gzip@gnu.org Subject: build: ensure no VLA is used Date: Mon, 21 Jan 2019 16:49:42 -0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::630 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit 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: -0.0 (/) --=-=-= Content-Type: text/plain I'm pushing these to prevent use of VLAs: --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=vla.txt >From 8aa53f1797315a541960d4225f00c9f27c9612fe Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 20 Jan 2019 22:23:57 -0800 Subject: [PATCH 1/2] build: update gnulib to latest --- gnulib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnulib b/gnulib index 4652c7b..5b490ef 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit 4652c7bafa60332145f1e05a7de5f48e1bc56226 +Subproject commit 5b490ef07f257a5dd41fc0b351c1a387b8a8f89c -- 2.20.1.2.gb21ebb671b >From 20540be6186c159880dda3a49a5827722c1a0ac9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 20 Jan 2019 22:24:06 -0800 Subject: [PATCH 2/2] build: ensure no VLA is used Cause developer builds to fail for any use of a VLA. VLAs (variable length arrays) limit portability. * configure.ac (nw): Remove -Wvla from the list of disabled warnings, thus enabling the warning when configured with --enable-gcc-warnings. (GNULIB_NO_VLA) Define, disabling use of VLAs in gnulib. This commit is functionally equivalent to coreutils' v8.30-44-gd26dece5d. --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index db86a2a..9a2b635 100644 --- a/configure.ac +++ b/configure.ac @@ -59,6 +59,10 @@ gl_EARLY gl_INIT +# Ensure VLAs are not used. +# Note -Wvla is implicitly added by gl_MANYWARN_ALL_GCC +AC_DEFINE([GNULIB_NO_VLA], [1], [Define to 1 to disable use of VLAs]) + AC_ARG_ENABLE([gcc-warnings], [AS_HELP_STRING([--enable-gcc-warnings], [turn on many GCC warnings (for developers; best with GNU make)])], @@ -114,7 +118,6 @@ if test "$gl_gcc_warnings" = yes; then nw="$nw -Wredundant-decls" # openat.h declares e.g., mkdirat nw="$nw -Wlogical-op" # any use of fwrite provokes this nw="$nw -Wformat-nonliteral" # who.c and pinky.c strftime uses - nw="$nw -Wvla" # warnings in gettext.h nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__ nw="$nw -Wswitch-enum" # Too many warnings for now nw="$nw -Wswitch-default" # Too many warnings for now -- 2.20.1.2.gb21ebb671b --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 21 20:12:14 2019 Received: (at control) by debbugs.gnu.org; 22 Jan 2019 01:12:14 +0000 Received: from localhost ([127.0.0.1]:40672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glkbt-0007pX-Ra for submit@debbugs.gnu.org; Mon, 21 Jan 2019 20:12:14 -0500 Received: from mail-wm1-f54.google.com ([209.85.128.54]:51439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glkbr-0007pK-TL for control@debbugs.gnu.org; Mon, 21 Jan 2019 20:12:12 -0500 Received: by mail-wm1-f54.google.com with SMTP id b11so12549883wmj.1 for ; Mon, 21 Jan 2019 17:12:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=PjK7fBgZhzKrwYj3hJVT411uBH7lvfU+bXNCM28OdZk=; b=gXTWnQvJdEsEeGgegMAi7Efgi1utwv1hZfWpJgFvc6Aj7pgEClvVTb3TBU2Bdu+0NL aybAYxJKNXH3TI4xfdlGe7mtXz8oCvLhcAQgRtkmywU67HSGcFnp4zUcWlduw5mgFtXZ RLdYv6XWuUB6QOAunh9AvL4qwg60Jru8vuGK5o2wyinbPi3zSlm1elOGpf/bDfMR/hwZ tbYhBmMVALBA9Kq/YSu4pv8fbv0jALLn9LHSVV5kr3bkr0PEabgKsv9v1yindEGbIrSf fDh254GeDvLqozHsw07D/I1nDdoCiyYQU+K9/LJuwuD44iwbK0IJS/9lycNTgAQwov4c /xuA== X-Gm-Message-State: AJcUukc6Qwmmtz+AyRGmrUpACdPEHQfl3pHTwAEh9OGZGaByYd+aUpD7 iGkALH7AIluXTP62J9OvFiCKLdSh2QCi3VLbuEpxOkof X-Google-Smtp-Source: ALg8bN5f3MNQb+18EPCkca1QIe5ffAILdpm6In2uOJFegZtz/+/X8PMWhiqoI1+G9dnta0lPtcm7b3KcBD8AFR8hlqs= X-Received: by 2002:a1c:4346:: with SMTP id q67mr1468968wma.114.1548119525493; Mon, 21 Jan 2019 17:12:05 -0800 (PST) MIME-Version: 1.0 From: Jim Meyering Date: Mon, 21 Jan 2019 17:11:53 -0800 Message-ID: Subject: To: GNU bug tracker automated control server Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.0 (++) 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: close 34167 Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (meyering[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.128.54 listed in list.dnswl.org] 0.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: control 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: 1.0 (+) close 34167 From unknown Mon Jun 16 23:50:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 19 Feb 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator