Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2011 23:54:51 +0100
From:      Oliver Pinter <oliver.pntr@gmail.com>
To:        "Devon H. O'Dell" <devon.odell@gmail.com>
Cc:        freebsd-bugs@freebsd.org, FreeBSD-gnats-submit@freebsd.org
Subject:   Re: kern/155321: imgact_shell integer underflow when argv[0] is longer than interp + path
Message-ID:  <AANLkTi=dUkneFhOMh_R6d7jS1og32xrBGo=%2B_LjedgHL@mail.gmail.com>
In-Reply-To: <AANLkTinQqtBD1ANhjs6P3gb5EJL4MhPUcLiPfo%2BmpNEX@mail.gmail.com>
References:  <201103061956.p26JutYe064887@red.freebsd.org> <201103062000.p26K0InG097407@freefall.freebsd.org> <AANLkTinQqtBD1ANhjs6P3gb5EJL4MhPUcLiPfo%2BmpNEX@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
under 7.4 exist too this problem

XXX@XXX test> gcc execve.c
XXX@XXX test> cp /bin/ls .
XXX@XXX test> ./a.out ls /tmp/test/ls
a.out           execve.c        ls              shellscript
XXX@XXX test> ./a.out shellscript asdf
shellscript
XXX@XXX test> ./a.out shellscript /tmp/test/
a.out*       execve.c     ls*          shellscript*
XXX@XXX test> ./a.out shellscript /tmp/test/ls
shellscript
XXX@XXX test> ./a.out shellscript /tmp/test/shellscript
shellscript
XXX@XXX test> ./a.out shellscript /bin/echo-shellscript
shellscript
XXX@XXX test> ./a.out shellscript /bin/echo-shellscript1
execve: Argument list too long
XXX@XXX test> uname -a
FreeBSD XXX 7.4-STABLE FreeBSD 7.4-STABLE #71 r219301+472ccf9: Sun Mar
 6 19:16:46 CET 2011     XXX@XXX:/usr/obj/usr/src/sys/stable  amd64


On 3/6/11, Devon H. O'Dell <devon.odell@gmail.com> wrote:
> Actually, kib@ points out that this isn't quite correct; the correct
> fix should indeed be a 1-liner, attached.
>
> --dho
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=dUkneFhOMh_R6d7jS1og32xrBGo=%2B_LjedgHL>