Date: Thu, 1 Aug 2002 15:10:27 -0400 From: Guy Middleton <guy@crtsol.com> To: marcel@mesa.nl Cc: ports@freebsd.org Subject: environment variable bug in mpage Message-ID: <20020801151027.A903@blink.corp.gnac.com>
next in thread | raw e-mail | index | archive | help
Hi, I found a bug in mpage, an extra call to strcpy which clobbers the stack. Here is the patch: --- args.c.orig Thu Aug 1 15:05:26 2002 +++ args.c Thu Aug 1 15:05:32 2002 @@ -442,7 +442,6 @@ libdir = env; if ((env = getenv("MPAGE")) != NULL) { - strcpy(copy, env); if ((copy = strdup(env)) == NULL) { fprintf(stderr, "%s: Unable to alloc memory for environment args\n", MPAGE); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020801151027.A903>