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
235e3e52
Commit
235e3e52
authored
Jul 11, 2023
by
Sven Baars
Committed by
Alexandre Julliard
Jul 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Test against the correct limit in get_extended_params().
parent
ac511013
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
virtual.c
dlls/ntdll/unix/virtual.c
+6
-2
No files found.
dlls/ntdll/unix/virtual.c
View file @
235e3e52
...
...
@@ -4353,6 +4353,10 @@ static NTSTATUS get_extended_params( const MEM_EXTENDED_PARAMETER *parameters, U
case
MemExtendedParameterAddressRequirements
:
{
MEM_ADDRESS_REQUIREMENTS
*
r
=
parameters
[
i
].
Pointer
;
ULONG_PTR
limit
;
if
(
is_wow64
())
limit
=
(
ULONG_PTR
)
get_wow_user_space_limit
();
else
limit
=
(
ULONG_PTR
)
user_space_limit
;
if
(
r
->
Alignment
)
{
...
...
@@ -4366,7 +4370,7 @@ static NTSTATUS get_extended_params( const MEM_EXTENDED_PARAMETER *parameters, U
if
(
r
->
LowestStartingAddress
)
{
*
limit_low
=
(
ULONG_PTR
)
r
->
LowestStartingAddress
;
if
(
*
limit_low
>=
(
ULONG_PTR
)
user_space_
limit
||
(
*
limit_low
&
granularity_mask
))
if
(
*
limit_low
>=
limit
||
(
*
limit_low
&
granularity_mask
))
{
WARN
(
"Invalid limit %p.
\n
"
,
r
->
LowestStartingAddress
);
return
STATUS_INVALID_PARAMETER
;
...
...
@@ -4375,7 +4379,7 @@ static NTSTATUS get_extended_params( const MEM_EXTENDED_PARAMETER *parameters, U
if
(
r
->
HighestEndingAddress
)
{
*
limit_high
=
(
ULONG_PTR
)
r
->
HighestEndingAddress
;
if
(
*
limit_high
>
(
ULONG_PTR
)
user_space_
limit
||
if
(
*
limit_high
>
limit
||
*
limit_high
<=
*
limit_low
||
((
*
limit_high
+
1
)
&
(
page_mask
-
1
)))
{
...
...
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