diff options
-rw-r--r-- | release_docs/RELEASE.txt | 2 | ||||
-rw-r--r-- | src/H5FDmulti.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index 4d2214b..22b677e 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -108,6 +108,8 @@ Bug Fixes since HDF5-1.6.2 release Library ------- + - Fixed memory overwrite when encoding "multi" file driver information + for file's superblock. QAK - 2004/08/05 - Fixed obscure bug where a filter which failed during chunk allocation could allow library to write uncompressed data to disk but think the data was compressed. QAK - 2004/07/29 diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c index 66b22bf..b03248d 100644 --- a/src/H5FDmulti.c +++ b/src/H5FDmulti.c @@ -772,7 +772,8 @@ H5FD_multi_sb_encode(H5FD_t *_file, char *name/*out*/, H5Eclear(); /* Name and version number */ - strcpy(name, "NCSAmulti"); + strncpy(name, "NCSAmulti",8); + name[8] = '\0'; assert(7==H5FD_MEM_NTYPES); for (m=H5FD_MEM_SUPER; m<H5FD_MEM_NTYPES; m=(H5FD_mem_t)(m+1)) |