[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    bash segv's when exec'd with no argv passed. (fwd)
From:       zen-parse <zen-parse () gmx ! net>
Date:       2003-02-19 8:05:34
Message-ID: Pine.LNX.4.44.0302192104450.18590-100000 () clarity ! local
[Download RAW message or body]

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' \
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' \
-DCONF_VENDOR='redhat' -DSHELL -DHAVE_CONFIG_H  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  \
-I.  -I. -I./include -I./lib -I/usr/include -O2 -march=i386 -mcpu=i686 uname output: \
Linux clarity 2.2.19-7.0.16 #1 Wed Mar 13 13:40:08 EST 2002 i686 unknown Machine \
Type: i386-redhat-linux-gnu

Bash Version: 2.04
Patch Level: 11
Release Status: release

Description:
	bash segv's when it is exec'd with no argv.

Repeat-By:
	execve("/bin/bash",0,0);
or
	execve("/bin/sh",0,0);

Fix:
	check if(argv[0]) before checking what name it was called with.
	


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic