This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Ada] [Security] Patch for buffer overflow in __gnat_tmp_name()


dewar@gnat.com (Robert Dewar) writes:

> I am a little dubious about the TMPDIR removal here, since it seems quite
> useful to be able to do this redirection. The fact that some feature can
> be used in an inappropriate manner seems a bit of a dubious reason for
> its removal if it is useful.

I understand your point.  However, honoring the TMPDIR environment
variable makes the I/O part of the Ada runtime unsuitable for
set-user-ID programs, so this removes a feature, too. ;-)

Perhaps we should implement a subprogram which permits setting the
directory?  The programmer can then set the directory to the value of
the TMPDIR environment variable, if he wants to.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]