From 1af1bd5fb3ab7fe1db17316604b2aefa4b537ea4 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 11 Aug 2005 18:52:00 -0500 Subject: [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: --- src/H5.c | 5 +++++ 1 file changed, 5 insertions(+) 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 */ /*------------------------------------------------------------------------- -- cgit v0.12