summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-08-11 23:52:00 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-08-11 23:52:00 (GMT)
commit1af1bd5fb3ab7fe1db17316604b2aefa4b537ea4 (patch)
tree8855c3ce52c687eb3808e15907dfa417ef138349
parent39da36afe56ee6627892bc0e31c0b0694f4b5a64 (diff)
downloadhdf5-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:
-rw-r--r--src/H5.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5.c b/src/H5.c
index d0affcd..a0e1e1f 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -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 */
/*-------------------------------------------------------------------------