diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-08-05 18:44:28 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-08-05 18:44:28 (GMT) |
commit | 94fb43379a47664fed619bc47bd608ecdb79f80d (patch) | |
tree | 049f029d74b32dc33bffab2ed84dd7ec29e5ad21 /src/H5FDmulti.c | |
parent | 462efe1cc78283f2285dffcf582ebad5fbddd132 (diff) | |
download | hdf5-94fb43379a47664fed619bc47bd608ecdb79f80d.zip hdf5-94fb43379a47664fed619bc47bd608ecdb79f80d.tar.gz hdf5-94fb43379a47664fed619bc47bd608ecdb79f80d.tar.bz2 |
[svn-r9025] 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)) |