adaint.c (__gnat_tmp_name): Better, but good enough for now, solution to buffer overflow bug on GNU/Linux.
2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org> * adaint.c (__gnat_tmp_name): Better, but good enough for now, solution to buffer overflow bug on GNU/Linux. From-SVN: r59220
This commit is contained in:
parent
ecfef45b9a
commit
dfc15546d8
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
|
||||
* adaint.c (__gnat_tmp_name): Better, but good enough for now,
|
||||
solution to buffer overflow bug on GNU/Linux.
|
||||
|
||||
2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
|
||||
Closes PR ada/5856 and PR ada/6919 !
|
||||
* bindgen.adb: Remove all references to Public_Version.
|
||||
|
|
|
@ -709,7 +709,7 @@ __gnat_tmp_name (tmp_filename)
|
|||
if (tmpdir == NULL)
|
||||
strcpy (tmp_filename, "/tmp/gnat-XXXXXX");
|
||||
else
|
||||
sprintf (tmp_filename, "%200s/gnat-XXXXXX", tmpdir);
|
||||
sprintf (tmp_filename, "%.200s/gnat-XXXXXX", tmpdir);
|
||||
|
||||
close (mkstemp(tmp_filename));
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue