Re: execve exit status on MIPS

From: David Newall
Date: Thu Sep 18 2008 - 00:55:49 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/