summaryrefslogtreecommitdiffstats
path: root/src/H5FDmulti.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-08-05 18:44:27 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-08-05 18:44:27 (GMT)
commit14cc7053529a7734a9f326becb7f35e4e18ed889 (patch)
tree9bee6430039dd6692d407a055e2f4b49ec221d70 /src/H5FDmulti.c
parent5d05a022f96ae6915a4319fd597342bffd785383 (diff)
downloadhdf5-14cc7053529a7734a9f326becb7f35e4e18ed889.zip
hdf5-14cc7053529a7734a9f326becb7f35e4e18ed889.tar.gz
hdf5-14cc7053529a7734a9f326becb7f35e4e18ed889.tar.bz2
[svn-r9024] Purpose:
Bug fix Description: Correct buffer overrun in "multi" VFL driver that was writing past the end of the "driver name" buffer when encoding the driver info block for the file's superblock. Platforms tested: FreeBSD 4.10 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5FDmulti.c')
-rw-r--r--src/H5FDmulti.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c
index f863b55..01048d6 100644
--- a/src/H5FDmulti.c
+++ b/src/H5FDmulti.c
@@ -804,7 +804,8 @@ H5FD_multi_sb_encode(H5FD_t *_file, char *name/*out*/,
#endif /* H5_WANT_H5_V1_6_COMPAT */
/* 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))