diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-08-18 23:19:27 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-08-18 23:19:27 (GMT) |
commit | 93e5190bb173a89deb7a91f72f800f6ab5769b8e (patch) | |
tree | 2bb86e9387ca7702ecc6742630f2301ff2bc76a9 /src/H5HG.c | |
parent | da3fcf286af08c45449fad4002889aa0a0ab7850 (diff) | |
download | hdf5-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/H5HG.c')
-rw-r--r-- | src/H5HG.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -142,7 +142,7 @@ H5HG_create (H5F_t *f, size_t size) UINT16ENCODE(p, 0); /*reference count*/ UINT32ENCODE(p, 0); /*reserved*/ H5F_encode_length (f, p, heap->obj[0].size); - HDmemset (p, 0, (size_t)((heap->chunk+heap->nalloc) - p)); + HDmemset (p, 0, (size_t)((heap->chunk+heap->size) - p)); /* Add the heap to the cache */ if (H5AC_set (f, H5AC_GHEAP, &addr, heap)<0) { |