Sorry, forgot to attach the patch.
>From 98c530c23d9a7f86c996b028cadc2f685ec1b339 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?=
Date: Sat, 6 May 2017 10:40:37 +0200
Subject: Avoid crash when redirecting to file descriptor in expredir.
Hello,
tried to reproduce this issue.
Unfortunately no dbgsym package is available for dash.
./build-tmp/src/dash
# echo test >&$EMPTY_VARIABLE
Speicherzugriffsfehler (Speicherabzug geschrieben)
# coredumpctl gdb
Core was generated by `./build-tmp/src/dash'.
Program terminated with signal
Package: dash
Version: 0.5.8-2.4
Severity: normal
When trying to redirect output to a filedescriptor contained in an
environment variable, but if that variable is empty, dash crashes with a
segmentation fault. To reproduce, run the following:
echo test >&$EMPTY_VARIABLE
-- System Information:
3 matches
Mail list logo