From: Rémi Bernon rbernon@codeweavers.com
The header data is defined from when the block was created, and this causes valgrind to report conditional jumps on uinitialized data. --- dlls/ntdll/heap.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c index 40fa0d5ecfe..e0125483edb 100644 --- a/dlls/ntdll/heap.c +++ b/dlls/ntdll/heap.c @@ -1964,7 +1964,6 @@ static NTSTATUS heap_free_block_lfh( struct heap *heap, ULONG flags, struct bloc if (bin == last) return STATUS_UNSUCCESSFUL;
i = block_get_group_index( block ); - valgrind_make_writable( block, sizeof(*block) ); block_set_type( block, BLOCK_TYPE_FREE ); block_set_flags( block, ~BLOCK_FLAG_LFH, BLOCK_FLAG_FREE ); mark_block_free( block + 1, (char *)block + block_size - (char *)(block + 1), flags );