Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
887b478a
Commit
887b478a
authored
Jan 17, 2003
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Don't risk running past the end of the unwind-table. Based on a patch by
Suresh Siddha.
parent
8f14820c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
arch/ia64/kernel/unwind.c
arch/ia64/kernel/unwind.c
+5
-3
No files found.
arch/ia64/kernel/unwind.c
View file @
887b478a
...
...
@@ -1997,16 +1997,18 @@ unw_create_gate_table (void)
{
extern
char
__start_gate_section
[],
__stop_gate_section
[];
unsigned
long
*
lp
,
start
,
end
,
segbase
=
unw
.
kernel_table
.
segment_base
;
const
struct
unw_table_entry
*
entry
,
*
first
;
const
struct
unw_table_entry
*
entry
,
*
first
,
*
unw_table_end
;
extern
int
ia64_unw_end
;
size_t
info_size
,
size
;
char
*
info
;
start
=
(
unsigned
long
)
__start_gate_section
-
segbase
;
end
=
(
unsigned
long
)
__stop_gate_section
-
segbase
;
unw_table_end
=
(
struct
unw_table_entry
*
)
&
ia64_unw_end
;
size
=
0
;
first
=
lookup
(
&
unw
.
kernel_table
,
start
);
for
(
entry
=
first
;
entry
->
start_offset
<
end
;
++
entry
)
for
(
entry
=
first
;
entry
<
unw_table_end
&&
entry
->
start_offset
<
end
;
++
entry
)
size
+=
3
*
8
+
8
+
8
*
UNW_LENGTH
(
*
(
u64
*
)
(
segbase
+
entry
->
info_offset
));
size
+=
8
;
/* reserve space for "end of table" marker */
...
...
@@ -2021,7 +2023,7 @@ unw_create_gate_table (void)
lp
=
unw
.
gate_table
;
info
=
(
char
*
)
unw
.
gate_table
+
size
;
for
(
entry
=
first
;
entry
->
start_offset
<
end
;
++
entry
,
lp
+=
3
)
{
for
(
entry
=
first
;
entry
<
unw_table_end
&&
entry
->
start_offset
<
end
;
++
entry
,
lp
+=
3
)
{
info_size
=
8
+
8
*
UNW_LENGTH
(
*
(
u64
*
)
(
segbase
+
entry
->
info_offset
));
info
-=
info_size
;
memcpy
(
info
,
(
char
*
)
segbase
+
entry
->
info_offset
,
info_size
);
...
...
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