summaryrefslogtreecommitdiffstats
path: root/src/H5Tref.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-05-15 13:44:01 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-05-15 13:44:01 (GMT)
commitae07c9ba2429a9c49291bcd9f02c0ce36b0a60ce (patch)
tree4d46d5261a489989d24f5d3665217beb305253fc /src/H5Tref.c
parent4d012b345c16ff20f09e51486ee2ecf029a3bbc4 (diff)
downloadhdf5-ae07c9ba2429a9c49291bcd9f02c0ce36b0a60ce.zip
hdf5-ae07c9ba2429a9c49291bcd9f02c0ce36b0a60ce.tar.gz
hdf5-ae07c9ba2429a9c49291bcd9f02c0ce36b0a60ce.tar.bz2
Replaced a few calls to HDmemcpy with H5MM_memcpy, which does overlap
checking.
Diffstat (limited to 'src/H5Tref.c')
-rw-r--r--src/H5Tref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Tref.c b/src/H5Tref.c
index f97b78a..b357baa 100644
--- a/src/H5Tref.c
+++ b/src/H5Tref.c
@@ -800,7 +800,7 @@ H5T__ref_disk_read(H5VL_object_t *src_file, const void *src_buf, size_t H5_ATTR_
HDassert(dst_size);
/* Copy header manually */
- HDmemcpy(q, p, H5R_ENCODE_HEADER_SIZE);
+ H5MM_memcpy(q, p, H5R_ENCODE_HEADER_SIZE);
p += H5R_ENCODE_HEADER_SIZE;
q += H5R_ENCODE_HEADER_SIZE;
blob_size -= H5R_ENCODE_HEADER_SIZE;
@@ -860,7 +860,7 @@ H5T__ref_disk_write(H5VL_object_t H5_ATTR_UNUSED *src_file, const void *src_buf,
} /* end if */
/* Copy header manually so that it does not get encoded into the blob */
- HDmemcpy(q, p, H5R_ENCODE_HEADER_SIZE);
+ H5MM_memcpy(q, p, H5R_ENCODE_HEADER_SIZE);
p += H5R_ENCODE_HEADER_SIZE;
q += H5R_ENCODE_HEADER_SIZE;
src_size -= H5R_ENCODE_HEADER_SIZE;