summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LTprivate.h
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2011-09-30 20:24:50 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2011-09-30 20:24:50 (GMT)
commit5c7353d2cd6f917cc1cb3448f25e82dc6dad9b09 (patch)
treee23e652c33c0d3ad9545f17f56922d77cb7cfd16 /hl/src/H5LTprivate.h
parentf74a23c836f68426f8c44231005d71e772681a34 (diff)
downloadhdf5-5c7353d2cd6f917cc1cb3448f25e82dc6dad9b09.zip
hdf5-5c7353d2cd6f917cc1cb3448f25e82dc6dad9b09.tar.gz
hdf5-5c7353d2cd6f917cc1cb3448f25e82dc6dad9b09.tar.bz2
[svn-r21439] 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.
This commit only includes hl/test/test_lite.c, hl/src/H5LT.c, hl/src/H5LTprivate.h. All others are property changes of the merge from the trunk. 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);