From 06dd709d5e48719a62c39944b047545ea462d2a4 Mon Sep 17 00:00:00 2001 From: Dennis Potman Date: Wed, 11 May 2022 14:41:41 +0200 Subject: [PATCH] Fix incorrect memdup src address for array bounds in xtypes wrapper Signed-off-by: Dennis Potman --- src/core/ddsi/src/ddsi_typewrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ddsi/src/ddsi_typewrap.c b/src/core/ddsi/src/ddsi_typewrap.c index 3b87bb63a6..21cc752103 100644 --- a/src/core/ddsi/src/ddsi_typewrap.c +++ b/src/core/ddsi/src/ddsi_typewrap.c @@ -420,7 +420,7 @@ static void xt_sbounds_to_lbounds (struct DDS_XTypes_LBoundSeq *lb, const struct static void xt_lbounds_dup (struct DDS_XTypes_LBoundSeq *dst, const struct DDS_XTypes_LBoundSeq *src) { dst->_length = src->_length; - dst->_buffer = ddsrt_memdup (&src->_buffer, dst->_length * sizeof (*dst->_buffer)); + dst->_buffer = ddsrt_memdup (src->_buffer, dst->_length * sizeof (*dst->_buffer)); } static void DDS_XTypes_AppliedBuiltinMemberAnnotations_copy (struct DDS_XTypes_AppliedBuiltinMemberAnnotations *dst, const struct DDS_XTypes_AppliedBuiltinMemberAnnotations *src);