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
489c6b38
Commit
489c6b38
authored
Sep 21, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore relocations for unmapped pages.
parent
c818a4e6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
virtual.c
dlls/ntdll/virtual.c
+9
-3
No files found.
dlls/ntdll/virtual.c
View file @
489c6b38
...
...
@@ -780,8 +780,7 @@ static int do_relocations( char *base, const IMAGE_DATA_DIRECTORY *dir,
if
(
!
count
)
continue
;
/* sanity checks */
if
((
char
*
)
rel
+
rel
->
SizeOfBlock
>
base
+
dir
->
VirtualAddress
+
dir
->
Size
||
page
>
base
+
total_size
)
if
((
char
*
)
rel
+
rel
->
SizeOfBlock
>
base
+
dir
->
VirtualAddress
+
dir
->
Size
)
{
ERR_
(
module
)(
"invalid relocation %p,%lx,%ld at %p,%lx,%lx
\n
"
,
rel
,
rel
->
VirtualAddress
,
rel
->
SizeOfBlock
,
...
...
@@ -789,7 +788,14 @@ static int do_relocations( char *base, const IMAGE_DATA_DIRECTORY *dir,
return
0
;
}
TRACE_
(
module
)(
"%ld relocations for page %lx
\n
"
,
rel
->
SizeOfBlock
,
rel
->
VirtualAddress
);
if
(
page
>
base
+
total_size
)
{
WARN_
(
module
)(
"skipping %d relocations for page %p beyond module %p-%p
\n
"
,
count
,
page
,
base
,
base
+
total_size
);
continue
;
}
TRACE_
(
module
)(
"%d relocations for page %lx
\n
"
,
count
,
rel
->
VirtualAddress
);
/* patching in reverse order */
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
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