summaryrefslogtreecommitdiffstats
path: root/src/H5FD.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-09 13:57:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-09 13:57:43 (GMT)
commit1a9312bb6ad925c43db17c33859e816e3ba7843a (patch)
tree8fd956b1cf9c5eb84656edc7bc7a0212cd45851a /src/H5FD.c
parente81fa063c3eb7ff830fec914a67df5aceb66f789 (diff)
downloadhdf5-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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/H5FD.c b/src/H5FD.c
index d7ac465..1c0e941 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -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 */