On Mon, Feb 15, 2010 at 4:55 PM, Garrett Cooper <yanef...@gmail.com> wrote:
> Hi Hackers,
>    I accidentally reproduced the following after executing read
> properly in a pipeline with make:

s/properly/improperly/

> [garrc...@garrcoop-fbsd /usr/home/garrcoop]$ read DESTDIR SRCCONF <
> /usr/bin/make -V DESTDIR -V SRCCONF
> bash: read: `-V': not a valid identifier
> [garrc...@garrcoop-fbsd /usr/home/garrcoop]$ echo $DESTDIR
>  ELF
> [garrc...@garrcoop-fbsd /usr/home/garrcoop]$ hexdump -C foo
> 00000000  7f 45 4c 46 01 01 01 0a                           |.ELF....|
> 00000008
> [garrc...@garrcoop-fbsd /usr/home/garrcoop]$

And just for completeness because I executed the above directly in bash...

[r...@garrcoop-fbsd /usr/home/garrcoop]# sh -c 'read DESTDIR SRCCONF <
/usr/bin/make -V DESTDIR -V SRCCONF; echo $DESTDIR > foo; hexdump -C
foo'
read: -V: bad variable name
00000000  7f 45 4c 46 01 01 01 0a                           |.ELF....|
00000008

>    Is this an issue to be concerned about apart from cosmetic noise,
> i.e. potential buffer access problem? I see the same garbage from
> bash/coreutils on RHEL 4.6 as well as read(1) and /bin/sh on FreeBSD
> with RELENG_8, so the issue appears to be consistent on multiple
> OSes...

Thanks,
-Garrett
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to