This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/19089] Environment variable TMP may yield gcc: abort with internal error
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2004 13:01:29 -0000
- Subject: [Bug other/19089] Environment variable TMP may yield gcc: abort with internal error
- References: <20041220124425.19089.m@verified.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-20 13:01 -------
In a way this is not a bug:
fd = mkstemps (temp_filename, suffix_len);
/* If mkstemps failed, then something bad is happening. Maybe we should
issue a message about a possible security attack in progress? */
if (fd == -1)
abort ();
/* Similarly if we can not close the file. */
if (close (fd))
abort ();
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19089