Debian Bug report logs - #966156
dash -n: stack overflow on long sequence of backticks

version graph

Package: dash; Maintainer for dash is Andrej Shadura <[email protected]>; Source for dash is src:dash (PTS, buildd, popcon).

Reported by: Jakub Wilk <[email protected]>

Date: Thu, 23 Jul 2020 21:54:01 UTC

Severity: normal

Tags: fixed-upstream, patch, upstream

Found in version dash/0.5.10.2-7

Forwarded to https://lore.kernel.org/dash/[email protected]/t/

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#966156: dash -n: stack overflow on long sequence of backticks
Reply-To: наб <[email protected]>, [email protected]
Resent-From: наб <[email protected]>
Resent-To: [email protected]
Resent-CC: Andrej Shadura <[email protected]>
X-Loop: [email protected]
Resent-Date: Wed, 14 Dec 2022 23:45:02 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 966156
X-Debian-PR-Package: dash
X-Debian-PR-Keywords: 
References: <[email protected]> <[email protected]>
X-Debian-PR-Source: dash
Received: via spool by [email protected] id=B966156.16710613714016656
          (code B ref 966156); Wed, 14 Dec 2022 23:45:02 +0000
Received: (at 966156) by bugs.debian.org; 14 Dec 2022 23:42:51 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.9 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
	FROM_SUSPICIOUS_NTLD,HAS_BUG_NUMBER,MURPHY_DRUGS_REL8,PGPSIGNATURE,
	RDNS_NONE,SPF_HELO_PASS,SPF_PASS,T_PDS_OTHER_BAD_TLD autolearn=ham
	autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 15; hammy, 96; neutral, 22; spammy, 0.
	spammytokens: hammytokens:0.000-+--UD:kernel.org,
	0.000-+--H*ct:application, 0.000-+--H*ct:protocol,
	0.000-+--H*ct:micalg, 0.000-+--H*ct:signed
Received: from [139.28.40.42] (port=36602 helo=tarta.nabijaczleweli.xyz)
	by buxtehude.debian.org with esmtp (Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1p5bOk-00Gqub-Sk
	for [email protected]; Wed, 14 Dec 2022 23:42:51 +0000
Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250])
	by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id DFF0FE7E;
	Thu, 15 Dec 2022 00:42:49 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz;
	s=202211; t=1671061369;
	bh=DRnpbST5L55zh6+FBncyU5BVby2LEEHYrpigdIdySUk=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
	b=b3Rf1HQHHUNvrf/kiCGjvQ/F/O7AMG6108708B3yg7owy1SBSV7Uqre1N0hCoa8H6
	 L8LnsxH0JYlrMO2P8vqer7RcDFHn5RAR/UtZN1mY+6EtLRzfE2DayA5hiJ9tChl9Ym
	 JzmHahAaJvqp3frPD+QJ72xZlY++e10NVxu9G0MDW4t2bHDvAlQGYDaEamkI5UEd9z
	 c40egx/T6UzCJiqCz+AiMUcNRUH/DtQRTikjGBpzY5zLFNP/n0z5ZqHUNDOMLRSNFF
	 PFiFdK+wmYqPPLiHy2o4vLb6qz1ii7vQEU5lP+mvj5c5IwTWzccwJAOAO0WpqE/fi0
	 YSMW3sMLo5ekA==
Date: Thu, 15 Dec 2022 00:42:48 +0100
From: наб <[email protected]>
To: [email protected]
Cc: Jakub Wilk <[email protected]>
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="nikqq3p7ci3phmdw"
Content-Disposition: inline
In-Reply-To: <[email protected]>
User-Agent: NeoMutt/20220429
[Message part 1 (text/plain, inline)]
Control: tags -1 + upstream patch
Control: forwarded -1 https://lore.kernel.org/dash/[email protected]/t/

Valgrind is right. I don't think you're likely to run into this on
non-pathological input, but it's a relatively simple fix.

Patch posted to dash@, archived at forwarded-to.

наб
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 14:18:29 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.