Your message dated Sun, 15 Nov 2026 18:45:00 +0000
with message-id <[email protected]>
and subject line Bug#1153681: fixed in dash 0.5.13.5-2
has caused the Debian Bug report #1153681,
regarding [PATCH] Fix variable expansion corruption with non ASCII bytes
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1153681: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153681
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dash
Version: 0.5.13.5-1
Severity: Important

Hi,

There is a bad bug in how dash >= 0.5.13 handles variables with non ascii 
values.
You can see this simply with:

  $ bu=$(env printf '\xBF')
  $ test "$bu" = "$(env printf '\xBF')" || echo variable corruption

The attached single line patch should address the issue.

I also reported at:
https://lore.kernel.org/dash/[email protected]/T/#u
(replying to someone else who also noticed this),
but there has been no response as of yet.

thanks,
Padraig
diff --git a/src/expand.c b/src/expand.c
index 76e67ce..7ebb841 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -980,7 +980,7 @@ static size_t memtodest(const char *p, size_t len, int flags)
 		p += count;
 
 		syntax = flags & (QUOTES_ESC | EXP_MBCHAR) ?
-			 BASESYNTAX : is_type;
+			 BASESYNTAX : is_type + SYNBASE;
 	} else
 		syntax = SQSYNTAX;
 

--- End Message ---
--- Begin Message ---
Source: dash
Source-Version: 0.5.13.5-2
Done: Andrej Shadura <[email protected]>

We believe that the bug you reported is fixed in the latest version of
dash, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrej Shadura <[email protected]> (supplier of updated dash package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 15 Nov 2026 19:26:44 +0100
Source: dash
Architecture: source
Version: 0.5.13.5-2
Distribution: experimental
Urgency: medium
Maintainer: Andrej Shadura <[email protected]>
Changed-By: Andrej Shadura <[email protected]>
Closes: 1153681
Changes:
 dash (0.5.13.5-2) experimental; urgency=medium
 .
   [ Johannes Schauer Marin Rodrigues ]
   * debian/tests/control: add dependency on python3.
 .
   [ Ayesha Shafique ]
   * expand: Fix out-of-bounds syntax table access.
     Thanks to Pádraig Brady (Closes: #1153681)
 .
   [ Andrej Shadura ]
   * Change the privilege-dropping sequence in privileged mode.
   * Drop privileges before opening the script.
Checksums-Sha1:
 7afb766c935d50af311096ee16aa8e0d0bfc7fe7 1480 dash_0.5.13.5-2.dsc
 2885fcb6351a6d4d8a83c85ad43352b238d0917e 42052 dash_0.5.13.5-2.debian.tar.xz
Checksums-Sha256:
 ef923cb432aa96e43c957ab22ac10e00a0edb2723fc4d622ef978b734dc8d5d6 1480 
dash_0.5.13.5-2.dsc
 9c14d239015112ba52cc86809ccf9d9a4342d76af8710e48b12ae11599d245ab 42052 
dash_0.5.13.5-2.debian.tar.xz
Files:
 2053276dfa74f3a7208bd98620f0a39f 1480 shells optional dash_0.5.13.5-2.dsc
 072ff3abd5acd560f6524a51f3b19181 42052 shells optional 
dash_0.5.13.5-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQSD3NF/RLIsyDZW7aHoRGtKyMdyYQUCavn5tQAKCRDoRGtKyMdy
YXuLAQCdoXcVKx2+WbyLcn+MWepfB5kJMCjJ2knJhtCUd172agD9Ee6VtplwTHaV
fQv/Sa1nDLqitXljOjcFirULTMPM7Ag=
=gewa
-----END PGP SIGNATURE-----

Attachment: pgpS8Q_8F54BH.pgp
Description: PGP signature


--- End Message ---

Reply via email to