Subject: this program crashes NetBSD-1.4/arm32
To: None <port-arm32@netbsd.org>
From: Darren Reed <darrenr@reed.wattle.id.au>
List: port-arm32
Date: 06/23/1999 23:53:58
#include <string.h>
#include <stdlib.h>
#include <sys/param.h>
#define CHECK_LEN (NCARGS+3)
static char **array = NULL;
main(argc, argv, envp)
int argc;
char *argv[];
char *envp[];
{
int i;
array = (char **)malloc(CHECK_LEN * sizeof(char *));
for (i = 0; i < (CHECK_LEN - 1); i++)
array[i] = "/bin/sh";
array[CHECK_LEN - 1] = NULL;
execve("/bin/sh", array, envp);
exit(0);
}