summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LTprivate.h
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2011-09-30 15:51:15 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2011-09-30 15:51:15 (GMT)
commitb7f8909a58f7a20258d0b0aed76b9bec7399a411 (patch)
tree0c33f038a43e231f8daf745698d598bb5f1c5b97 /hl/src/H5LTprivate.h
parentbae6ab52199bd21d5e7f464ae308dae8646b2298 (diff)
downloadhdf5-b7f8909a58f7a20258d0b0aed76b9bec7399a411.zip
hdf5-b7f8909a58f7a20258d0b0aed76b9bec7399a411.tar.gz
hdf5-b7f8909a58f7a20258d0b0aed76b9bec7399a411.tar.bz2
[svn-r21436] Issue 7701 - H5LTdtype_to_text had memory corruption while being querried about the size of the buffer needed. The problem happened when the internal buffer is reallocated, the new address got lost. I revised the code to pass the new address as the return value of functions. I also added two new test cases.
Tested on jam, linew, and koala.
Diffstat (limited to 'hl/src/H5LTprivate.h')
-rw-r--r--hl/src/H5LTprivate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/src/H5LTprivate.h b/hl/src/H5LTprivate.h
index c51ee7c..69616b1 100644
--- a/hl/src/H5LTprivate.h
+++ b/hl/src/H5LTprivate.h
@@ -45,7 +45,7 @@ H5_HLDLL herr_t H5LT_set_attribute_string( hid_t dset_id,
H5_HLDLL herr_t H5LT_find_attribute( hid_t loc_id, const char *name );
-H5_HLDLL herr_t H5LT_dtype_to_text(hid_t dtype, char **dt_str, H5LT_lang_t lang,
+H5_HLDLL char* H5LT_dtype_to_text(hid_t dtype, char *dt_str, H5LT_lang_t lang,
size_t *slen, hbool_t no_user_buf);