diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-08-17 19:21:36 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-08-17 19:21:36 (GMT) |
commit | 7bbea1371134d93939225593a0a730db9b8e9c7b (patch) | |
tree | 1c193c9321b725be95a35f412f4209a3cb0b1da8 /tools/lib/h5tools_utils.h | |
parent | 918c992dea6a975193f2f3fa1ced9f1f907c4aff (diff) | |
download | hdf5-7bbea1371134d93939225593a0a730db9b8e9c7b.zip hdf5-7bbea1371134d93939225593a0a730db9b8e9c7b.tar.gz hdf5-7bbea1371134d93939225593a0a730db9b8e9c7b.tar.bz2 |
[svn-r11259] Purpose:
Bug fix
Description:
ph5diff had been hanging in Tflops. Found out that vsnprintf ph5diff
uses was a local coded that did not limit printing according to the size
argument. That resulted in buffer overflow and other problems.
Solution:
Added some sort of size checking in the home-grown vsnprintf and
had ph5diff checked for error return of vsnprintf. Leon also
revamped the ph5diff manager's way of handling communications with
the workers. That eliminated all but the last case of hanging.
Platforms tested:
Tflops.
Misc. update:
Diffstat (limited to 'tools/lib/h5tools_utils.h')
-rw-r--r-- | tools/lib/h5tools_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/h5tools_utils.h b/tools/lib/h5tools_utils.h index a210c0f..6398e10 100644 --- a/tools/lib/h5tools_utils.h +++ b/tools/lib/h5tools_utils.h @@ -121,5 +121,8 @@ extern herr_t find_objs(hid_t group, const char *name, void *op_data); extern int search_obj(table_t *temp, haddr_t objno); extern void init_table(table_t **tbl); extern void init_prefix(char **temp, size_t); +#ifndef H5_HAVE_TMPFILE +extern FILE * tmpfile(void); +#endif #endif /* H5TOOLS_UTILS_H__ */ |