source(builtin) and read(2)

2007-03-23 Thread hooanon05
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-pc-linux-gnu' -DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../

Re: source(builtin) and read(2)

2007-03-26 Thread hooanon05
Andreas Schwab: > > When the file size is very large or the filesystem is poor, the read(2) > > systemcall may not read all of the file. In this case, the return value > > will be shorter than the requested bytes. > > Even worse, if read returns -1 then this writes beyond array bounds. > Also, fi