From 1a9312bb6ad925c43db17c33859e816e3ba7843a Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 9 Jun 2004 08:57:43 -0500 Subject: [svn-r8630] Purpose: Bug fix Description: Correct potential file corruption from mis-setting the metadata accumulator address. (Bugfix contributed by Sean Monner ) 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 --- src/H5FD.c | 1 - 1 file changed, 1 deletion(-) 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 */ -- cgit v0.12