Commit 050d1a59 by Jerry DeLisle

re PR fortran/47296 (I/O Segfault when running out of file descriptors)

2011-01-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47296
	* io/unix.c (unpack_filename): Return non-zero if the filename passed
	in is NULL.

From-SVN: r168832
parent 7c3e9502
2011-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/47296
* io/unix.c (unpack_filename): Return non-zero if the filename passed
in is NULL.
2011-01-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/47154
......
......@@ -1000,6 +1000,8 @@ unit_to_fd (int unit)
int
unpack_filename (char *cstring, const char *fstring, int len)
{
if (fstring == NULL)
return 1;
len = fstrlen (fstring, len);
if (len >= PATH_MAX)
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment