diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-08-11 23:52:00 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-08-11 23:52:00 (GMT) |
commit | 1af1bd5fb3ab7fe1db17316604b2aefa4b537ea4 (patch) | |
tree | 8855c3ce52c687eb3808e15907dfa417ef138349 /src/H5.c | |
parent | 39da36afe56ee6627892bc0e31c0b0694f4b5a64 (diff) | |
download | hdf5-1af1bd5fb3ab7fe1db17316604b2aefa4b537ea4.zip hdf5-1af1bd5fb3ab7fe1db17316604b2aefa4b537ea4.tar.gz hdf5-1af1bd5fb3ab7fe1db17316604b2aefa4b537ea4.tar.bz2 |
[svn-r11234] Purpose:
bug fix.
Description:
The code for functions snprintf and vsnprintf ignored the size parameter.
It could overflow the buffer. The two functions are supported by many
platforms now. Disable the code and see what platform(s) still need
it.
Platforms tested:
h5committested
Misc. update:
Diffstat (limited to 'src/H5.c')
-rw-r--r-- | src/H5.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -730,6 +730,10 @@ H5close(void) } +/* disable the code of HDsnprintf and HDvsnprintf below to see if they + * still needed by how what platforms. AKC 2005/8/11. + */ +#if 0 #ifndef H5_HAVE_SNPRINTF /*------------------------------------------------------------------------- * Function: HDsnprintf @@ -806,6 +810,7 @@ HDvsnprintf(char *buf, size_t UNUSED size, const char *fmt, va_list ap) return HDvsprintf(buf, fmt, ap); } #endif /* H5_HAVE_VSNPRINTF */ +#endif /* 0 */ /*------------------------------------------------------------------------- |