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
8bea6ce4
Commit
8bea6ce4
authored
May 29, 2011
by
Janne Blomqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PR 49214 fd_gets should return NULL if nothing was read
From-SVN: r174395
parent
fa766006
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
libgfortran/ChangeLog
+5
-0
libgfortran/runtime/backtrace.c
+2
-0
No files found.
libgfortran/ChangeLog
View file @
8bea6ce4
2011-05-29 Janne Blomqvist <jb@gcc.gnu.org>
2011-05-29 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/49214
* runtime/backtrace.c (fd_gets): Return NULL if nothing was read.
2011-05-29 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/19155
PR libfortran/19155
* io/read.c (convert_real): Check for invalid input by comparing
* io/read.c (convert_real): Check for invalid input by comparing
endptr instead of EINVAL.
endptr instead of EINVAL.
...
...
libgfortran/runtime/backtrace.c
View file @
8bea6ce4
...
@@ -95,6 +95,8 @@ fd_gets (char *s, int size, int fd)
...
@@ -95,6 +95,8 @@ fd_gets (char *s, int size, int fd)
else
else
{
{
s
[
i
]
=
'\0'
;
s
[
i
]
=
'\0'
;
if
(
i
==
0
)
return
NULL
;
break
;
break
;
}
}
}
}
...
...
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