diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-06-09 13:57:43 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-06-09 13:57:43 (GMT) |
commit | 1a9312bb6ad925c43db17c33859e816e3ba7843a (patch) | |
tree | 8fd956b1cf9c5eb84656edc7bc7a0212cd45851a /src/H5FD.c | |
parent | e81fa063c3eb7ff830fec914a67df5aceb66f789 (diff) | |
download | hdf5-1a9312bb6ad925c43db17c33859e816e3ba7843a.zip hdf5-1a9312bb6ad925c43db17c33859e816e3ba7843a.tar.gz hdf5-1a9312bb6ad925c43db17c33859e816e3ba7843a.tar.bz2 |
[svn-r8630] Purpose:
Bug fix
Description:
Correct potential file corruption from mis-setting the metadata accumulator
address. (Bugfix contributed by Sean Monner <seanm@quadrus.com>)
Solution:
When the new metadata overlaps with the end of the metadata accumulator and
the accumulator grows in size, don't reset the address of the accumulator, since
it hasn't moved.
Platforms tested:
FreeBSD 4.9 (sleipnir)
too minor to require h5committest
Diffstat (limited to 'src/H5FD.c')
-rw-r--r-- | src/H5FD.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -3294,7 +3294,6 @@ H5FD_write(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t si HDmemcpy(file->meta_accum+(addr-file->accum_loc),buf,size); /* Set the new size & location of the metadata accumulator */ - file->accum_loc=addr; file->accum_size=new_size; /* Mark it as written to */ |