[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48D1DF43.4090804@davidnewall.com>
Date: Thu, 18 Sep 2008 14:25:31 +0930
From: David Newall <davidn@...idnewall.com>
To: Halesh S <halesh.s@...ia.com>
CC: linux-kernel@...r.kernel.org
Subject: Re: execve exit status on MIPS
Halesh S wrote:
> char e2BIG[ARG_MAX+1][10];
> ...
> for(ind = 0; ind < ARG_MAX+1; ind++)
> strcpy(e2BIG[ind], "helloworld");
>
Did you intend to overflow e2BIG? You're copying 11 bytes (including
terminating NUL) into a 10 byte array.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists