diff options
author | Ron Yorston <rmy@pobox.com> | 2015-10-30 19:07:37 +0000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-30 22:23:13 +0100 |
commit | 95650a86d176ee83a264fd9e7047c414b71ee7cb (patch) | |
tree | b19e6bf3825cd00040df90826249a3c490a51e0a /testsuite/uncompress.tests | |
parent | 8c55dc79a79d6a16c364e6b1f849bf426f21fcbb (diff) | |
download | busybox-95650a86d176ee83a264fd9e7047c414b71ee7cb.tar.gz |
ash: allow popredir to be called if the stack is empty
If /tmp/test.sh is a script that tries to run a second script which
happens to be non-executable this:
command . /tmp/test.sh
causes a seg fault.
This is because clearredir is called in the error path to clear the
stack of redirections. The normal path then calls popredir, but popredir
fails when the stack is empty.
Reported-by: Bastian Bittorf <bittorf@bluebottle.com>
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/uncompress.tests')
0 files changed, 0 insertions, 0 deletions