Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ae010a1a
Commit
ae010a1a
authored
Oct 30, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Nov 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix pending free block validation in heap_validate() for LFH blocks.
parent
1063cf81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
heap.c
dlls/ntdll/heap.c
+2
-6
No files found.
dlls/ntdll/heap.c
View file @
ae010a1a
...
...
@@ -1343,15 +1343,11 @@ static BOOL heap_validate( const struct heap *heap )
{
if
(
!
(
block
=
heap
->
pending_free
[
i
]))
break
;
subheap
=
find_subheap
(
heap
,
block
,
FALSE
);
if
(
!
subheap
)
if
(
!
validate_used_block
(
heap
,
find_subheap
(
heap
,
block
,
FALSE
),
block
,
BLOCK_TYPE_DEAD
))
{
ERR
(
"heap %p: cannot find valid subheap for delayed freed block %p
\n
"
,
heap
,
block
);
if
(
TRACE_ON
(
heap
))
heap_dump
(
heap
);
ERR
(
"heap %p: failed to to validate delayed free block %p
\n
"
,
heap
,
block
);
return
FALSE
;
}
if
(
!
validate_used_block
(
heap
,
subheap
,
block
,
BLOCK_TYPE_DEAD
))
return
FALSE
;
}
for
(;
i
<
MAX_FREE_PENDING
;
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