[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash segfaults when syntax error occurs in array assignment
From: |
Tobias C. Rittweiler |
Subject: |
bash segfaults when syntax error occurs in array assignment |
Date: |
Sun, 2 Feb 2003 22:38:40 +0100 |
Hello List,
I'm not subscribed to the list, so please CC me.
Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2
uname output: Linux brood 2.5.59 #1 Thu Jan 23 19:58:32 CET 2003 i586 unknown
unknown GNU/Linux
Machine Type: i586-pc-linux-gnu
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
Bash segfaults when a syntax error occurs within an array
compound assignment. Well I could only reproduce this when
`source'ing a file, see below.
Repeat-By:
$ cat >test <<EOF
foobar=(
produce an error | here
)
EOF
$ . test
$ rm -f test
Fix:
attached.
--
cheers,
Tobias <tobrit@freebits.de>
http://freebits.org - "Unix? What's that? Is that like Linux? "
http://rocklinux.org - "I'm a hacker, and I'm using ROCK Linux. "
"In heaven all the interesting people are missing."
-- Friedrich Nietzsche
"Freedom is just Chaos, with better lighting."
-- Alan Dean Foster
bash-2.05b-segfault.diff
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bash segfaults when syntax error occurs in array assignment,
Tobias C. Rittweiler <=