diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-06-19 15:23:04 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-06-19 15:23:04 (GMT) |
commit | 4d20db43bea4bc4588b20abebef5b0d043dcf31d (patch) | |
tree | fbed45a5b9565755438d250bee37be50339839fa /src | |
parent | c6e21cede788790b39af4a46a8bc15e49e382346 (diff) | |
parent | 6a1e9a1fbe9606d0dd3452092cab17794e131e64 (diff) | |
download | hdf5-4d20db43bea4bc4588b20abebef5b0d043dcf31d.zip hdf5-4d20db43bea4bc4588b20abebef5b0d043dcf31d.tar.gz hdf5-4d20db43bea4bc4588b20abebef5b0d043dcf31d.tar.bz2 |
Merge pull request #1750 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:ohdr_test_memory_issue to develop
* commit '6a1e9a1fbe9606d0dd3452092cab17794e131e64':
Fixed a problem in the ohdr test where hard-coded strings passed to H5Awrite() triggered -fsanitize failures.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Aint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Aint.c b/src/H5Aint.c index 2126444..808d9b3 100644 --- a/src/H5Aint.c +++ b/src/H5Aint.c @@ -771,7 +771,7 @@ H5A__write(H5A_t *attr, const H5T_t *mem_type, const void *buf) if(NULL == (attr->shared->data = H5FL_BLK_MALLOC(attr_buf, dst_type_size * nelmts))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed") - /* Copy the attribute data into the user's buffer */ + /* Copy the attribute data into the attribute data buffer */ H5MM_memcpy(attr->shared->data, buf, (dst_type_size * nelmts)); } /* end else */ |