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
64e56cf2
Commit
64e56cf2
authored
Feb 14, 2007
by
Steven G. Kargl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a potential buffer overflow.
From-SVN: r121958
parent
23ced53f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
gcc/fortran/ChangeLog
+4
-0
gcc/fortran/misc.c
+2
-1
No files found.
gcc/fortran/ChangeLog
View file @
64e56cf2
2007-02-14 Steven G. Kargl <kargl@gcc.gnu.org>
* misc.c (gfc_typename): Fix potential buffer overflow.
2007-02-13 Paul Thomas <pault@gcc.gnu.org>
2007-02-13 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30554
PR fortran/30554
...
...
gcc/fortran/misc.c
View file @
64e56cf2
...
@@ -152,7 +152,8 @@ gfc_basic_typename (bt type)
...
@@ -152,7 +152,8 @@ gfc_basic_typename (bt type)
const
char
*
const
char
*
gfc_typename
(
gfc_typespec
*
ts
)
gfc_typename
(
gfc_typespec
*
ts
)
{
{
static
char
buffer1
[
60
],
buffer2
[
60
];
/* FIXME: Buffer overflow. */
static
char
buffer1
[
GFC_MAX_SYMBOL_LEN
+
7
];
/* 7 for "TYPE()" + '\0'. */
static
char
buffer2
[
GFC_MAX_SYMBOL_LEN
+
7
];
static
int
flag
=
0
;
static
int
flag
=
0
;
char
*
buffer
;
char
*
buffer
;
...
...
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