summaryrefslogtreecommitdiffstats
path: root/src/H5Fistore.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-08-18 23:19:27 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-08-18 23:19:27 (GMT)
commit93e5190bb173a89deb7a91f72f800f6ab5769b8e (patch)
tree2bb86e9387ca7702ecc6742630f2301ff2bc76a9 /src/H5Fistore.c
parentda3fcf286af08c45449fad4002889aa0a0ab7850 (diff)
downloadhdf5-93e5190bb173a89deb7a91f72f800f6ab5769b8e.zip
hdf5-93e5190bb173a89deb7a91f72f800f6ab5769b8e.tar.gz
hdf5-93e5190bb173a89deb7a91f72f800f6ab5769b8e.tar.bz2
[svn-r603] Changes since 19980818
---------------------- ./src/H5.c Fixed an argument promotion bug in HDfprintf() ./src/H5Fistore.c Fixed a array bounds read error. ./src/H5HG.c Fixed uninitialized (but unused) data appearing in the hdf5 file, a potential security problem. ./src/H5T.c ./src/H5Tpublic.h Added new data types for hdf5 types: H5T_NATIVE_HSIZE, H5T_NATIVE_HSSIZE, H5T_NATIVE_HERR, and H5T_NATIVE_HBOOL. I did not add H5T_NATIVE_HID since I couldn't think of a reason that it would be stored in a file anyway.
Diffstat (limited to 'src/H5Fistore.c')
-rw-r--r--src/H5Fistore.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/H5Fistore.c b/src/H5Fistore.c
index dcea323..efeb7d7 100644
--- a/src/H5Fistore.c
+++ b/src/H5Fistore.c
@@ -877,7 +877,7 @@ H5F_istore_preempt (H5F_t *f, intn idx)
H5F_istore_flush_entry (f, ent, TRUE);
HDmemmove (rdcc->slot+idx, rdcc->slot+idx+1,
- (rdcc->nused-idx) * sizeof(H5F_rdcc_ent_t));
+ (rdcc->nused-(idx+1)) * sizeof(H5F_rdcc_ent_t));
rdcc->nused -= 1;
rdcc->nbytes -= ent->chunk_size;
@@ -911,9 +911,6 @@ H5F_istore_dest (H5F_t *f)
FUNC_ENTER (H5F_istore_dest, FAIL);
for (i=rdcc->nused-1; i>=0; --i) {
- if (H5F_istore_flush_entry (f, rdcc->slot+i, TRUE)<0) {
- nerrors++;
- }
if (H5F_istore_preempt(f, i)<0) {
nerrors++;
}