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
aea955a2
Commit
aea955a2
authored
Feb 08, 1998
by
Scott Snyder
Committed by
Jeff Law
Feb 08, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* method.c (make_thunk): Avoid name buffer overflow.
From-SVN: r17784
parent
13309a5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/method.c
+2
-1
No files found.
gcc/cp/ChangeLog
View file @
aea955a2
Sun Feb 8 23:47:38 1998 scott snyder <sss@d0linux01.fnal.gov>
* method.c (make_thunk): Avoid name buffer overflow.
Sat Feb 7 16:48:54 1998 Jason Merrill <jason@yorick.cygnus.com>
Sat Feb 7 16:48:54 1998 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (instantiate_decl): Call cp_finish_decl for vars even if we
* pt.c (instantiate_decl): Call cp_finish_decl for vars even if we
...
...
gcc/cp/method.c
View file @
aea955a2
...
@@ -1905,7 +1905,7 @@ make_thunk (function, delta)
...
@@ -1905,7 +1905,7 @@ make_thunk (function, delta)
tree
function
;
tree
function
;
int
delta
;
int
delta
;
{
{
char
buffer
[
250
]
;
char
*
buffer
;
tree
thunk_id
;
tree
thunk_id
;
tree
thunk
;
tree
thunk
;
char
*
func_name
;
char
*
func_name
;
...
@@ -1916,6 +1916,7 @@ make_thunk (function, delta)
...
@@ -1916,6 +1916,7 @@ make_thunk (function, delta)
if
(
TREE_CODE
(
func_decl
)
!=
FUNCTION_DECL
)
if
(
TREE_CODE
(
func_decl
)
!=
FUNCTION_DECL
)
abort
();
abort
();
func_name
=
IDENTIFIER_POINTER
(
DECL_ASSEMBLER_NAME
(
func_decl
));
func_name
=
IDENTIFIER_POINTER
(
DECL_ASSEMBLER_NAME
(
func_decl
));
buffer
=
(
char
*
)
alloca
(
strlen
(
func_name
)
+
32
);
if
(
delta
<=
0
)
if
(
delta
<=
0
)
sprintf
(
buffer
,
"__thunk_%d_%s"
,
-
delta
,
func_name
);
sprintf
(
buffer
,
"__thunk_%d_%s"
,
-
delta
,
func_name
);
else
else
...
...
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