Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
9cd72574
Commit
9cd72574
authored
Jan 17, 2011
by
Janne Blomqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PR47296 Segfault when running out of file descriptors
From-SVN: r168888
parent
124b5e36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
libgfortran/ChangeLog
+6
-0
libgfortran/io/unix.c
+4
-8
No files found.
libgfortran/ChangeLog
View file @
9cd72574
2011-01-17 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/47296
* io/unix.c (tempfile): Set opp->file and opp->file_len also if an
error occurs.
2011-01-16 Jakub Jelinek <jakub@redhat.com>
PR fortran/46625
...
...
libgfortran/io/unix.c
View file @
9cd72574
/* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
/* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011
Free Software Foundation, Inc.
Contributed by Andy Vaught
F2003 I/O support contributed by Jerry DeLisle
...
...
@@ -1084,13 +1085,8 @@ tempfile (st_parameter_open *opp)
while
(
fd
==
-
1
&&
errno
==
EEXIST
);
#endif
/* HAVE_MKSTEMP */
if
(
fd
<
0
)
free
(
template
);
else
{
opp
->
file
=
template
;
opp
->
file_len
=
strlen
(
template
);
/* Don't include trailing nul */
}
opp
->
file
=
template
;
opp
->
file_len
=
strlen
(
template
);
/* Don't include trailing nul */
return
fd
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment