Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 1996 20:07:02 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        rlb@mindspring.com (Ron Bolin)
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: mktemp BUG?
Message-ID:  <199610210307.UAA19700@bubba.whistle.com>
In-Reply-To: <326AD788.167EB0E7@mindspring.com> from Ron Bolin at "Oct 20, 96 09:53:12 pm"

next in thread | previous in thread | raw e-mail | index | archive | help

> Can anyone else duplicate this bug?
> #include <stdlib.h>
> char *tmp = mktemp("/tmp/cp.XXXXXX");

Your template string is going to be mapped read-only, and then
mktemp trys to write to it -> core dump.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610210307.UAA19700>