Module: wine Branch: master Commit: 805247ace3a3abc0f496834342482fba2a6631bc URL: https://gitlab.winehq.org/wine/wine/-/commit/805247ace3a3abc0f496834342482fb...
Author: Rémi Bernon rbernon@codeweavers.com Date: Fri Jan 27 16:51:41 2023 +0100
ntdll: Fix HeapWalk with empty uncommitted consecutive subheaps.
---
dlls/ntdll/heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index 9403c83e92c..a2410957a44 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -653,7 +653,7 @@ static SUBHEAP *find_subheap( const struct heap *heap, const struct block *block if (!check_subheap( subheap, heap )) return NULL; if (contains( first_block( subheap ), blocks_size, block, sizeof(*block) )) return subheap; /* outside of blocks region, possible corruption or heap_walk */ - if (contains( subheap_base( subheap ), subheap_size( subheap ), block, 0 )) return heap_walk ? subheap : NULL; + if (contains( subheap_base( subheap ), subheap_size( subheap ), block, 1 )) return heap_walk ? subheap : NULL; }
return NULL;