Thread View: linux.debian.bugs.dist
2 messages
2 total messages
Started by Pádraig Brady
Tue, 10 Nov 2026 22:30
Bug#1153681: [PATCH] Fix variable expansion corruption with non ASCII bytes
Author: Pádraig Brady
Date: Tue, 10 Nov 2026 22:30
Date: Tue, 10 Nov 2026 22:30
40 lines
4314 bytes
4314 bytes
This is a multi-part message in MIME format. --------------l0lbpPU0Z700tnqzYs7R5cjE Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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/8a050dca-a4b5-440e-ad4f-f1f41159519c@draigBrady.com/T/#u (replying to someone else who also noticed this), but there has been no response as of yet. thanks, Padraig --------------l0lbpPU0Z700tnqzYs7R5cjE Content-Type: text/x-patch; charset=UTF-8; name="dash-expand-corruption.patch" Content-Disposition: attachment; filename="dash-expand-corruption.patch" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9leHBhbmQuYyBiL3NyYy9leHBhbmQuYwppbmRleCA3NmU2N2Nl Li43ZWJiODQxIDEwMDY0NAotLS0gYS9zcmMvZXhwYW5kLmMKKysrIGIvc3JjL2V4cGFuZC5j CkBAIC05ODAsNyArOTgwLDcgQEAgc3RhdGljIHNpemVfdCBtZW10b2Rlc3QoY29uc3QgY2hh ciAqcCwgc2l6ZV90IGxlbiwgaW50IGZsYWdzKQogCQlwICs9IGNvdW50OwogCiAJCXN5bnRh eCA9IGZsYWdzICYgKFFVT1RFU19FU0MgfCBFWFBfTUJDSEFSKSA/Ci0JCQkgQkFTRVNZTlRB WCA6IGlzX3R5cGU7CisJCQkgQkFTRVNZTlRBWCA6IGlzX3R5cGUgKyBTWU5CQVNFOwogCX0g ZWxzZQogCQlzeW50YXggPSBTUVNZTlRBWDsKIAo= --------------l0lbpPU0Z700tnqzYs7R5cjE--
Bug#1153681: [PATCH] Fix variable expansion corruption with non ASCII bytes
Author: Anders Kaseorg
Date: Wed, 11 Nov 2026 19:50
Date: Wed, 11 Nov 2026 19:50
6 lines
2061 bytes
2061 bytes
Control: tags -1 + fixed-upstream Fixed upstream in 0.5.13.6: https://git.kernel.org/pub/scm/utils/dash/dash.git/commit/?h=v0.5.13.6~ Anders
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads