mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r6104] Purpose:
Bug Fix Description: Free blocks of space in the file which were merged with a block before them were not updating the free list information correctly, allowing space in the file to over-allocated and potentially corrupted. Solution: Correct address of free block during merging. Platforms tested: Tested h5committest {arabica (fortran), eirene (fortran, C++) modi4 (parallel, fortran)} FreeBSD 4.7 (sleipnir)
This commit is contained in:
parent
5f91db8d68
commit
973c40d85f
@ -1879,6 +1879,7 @@ H5FD_free(H5FD_t *file, H5FD_mem_t type, haddr_t addr, hsize_t size)
|
||||
curr->size+=size;
|
||||
|
||||
/* Adjust the information about to memory block to include the merged block */
|
||||
addr=curr->addr;
|
||||
size=curr->size;
|
||||
|
||||
/* Update the information about the merged node */
|
||||
|
Loading…
x
Reference in New Issue
Block a user