Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
144cb78d
Commit
144cb78d
authored
Dec 16, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader: Make sure the new stack is 16-byte aligned in the preloader.
parent
3f213cb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
preloader.c
loader/preloader.c
+4
-3
No files found.
loader/preloader.c
View file @
144cb78d
...
...
@@ -512,18 +512,19 @@ static void set_auxiliary_values( ElfW(auxv_t) *av, const ElfW(auxv_t) *new_av,
src
=
(
char
*
)
*
stack
;
dst
=
src
-
(
new_count
-
delete_count
)
*
sizeof
(
*
av
);
if
(
new_count
>
delete_count
)
/* need to make room for the extra values */
dst
=
(
char
*
)((
unsigned
long
)
dst
&
~
15
);
if
(
dst
<
src
)
/* need to make room for the extra values */
{
int
len
=
(
char
*
)(
av
+
av_count
+
1
)
-
src
;
for
(
i
=
0
;
i
<
len
;
i
++
)
dst
[
i
]
=
src
[
i
];
}
else
if
(
new_count
<
delete_count
)
/* get rid of unused values */
else
if
(
dst
>
src
)
/* get rid of unused values */
{
int
len
=
(
char
*
)(
av
+
av_count
+
1
)
-
src
;
for
(
i
=
len
-
1
;
i
>=
0
;
i
--
)
dst
[
i
]
=
src
[
i
];
}
*
stack
=
dst
;
av
-=
(
new_count
-
delete_count
);
av
=
(
ElfW
(
auxv_t
)
*
)((
char
*
)
av
+
(
dst
-
src
)
);
/* now set the values */
for
(
j
=
0
;
new_av
[
j
].
a_type
!=
AT_NULL
;
j
++
)
...
...
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