diff options
author | Hans Goudey <h.goudey@me.com> | 2021-07-19 02:24:11 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-07-19 02:24:11 +0300 |
commit | 83883ae66ad3231840d483ff091727b33d2f355b (patch) | |
tree | 37b2dc151ed8bd8c15d99275afa26ad2b31c98c2 /source | |
parent | 75ae328d629aee6ed9b8adc38f6c2143824581f5 (diff) |
Fix: memcpy overlapping region ASAN warning in curve trim node
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc index 667cf26183f..f7aecf72303 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc @@ -84,7 +84,7 @@ template<typename T> static void shift_slice_to_start(MutableSpan<T> data, const int start_index, const int size) { BLI_assert(start_index + size - 1 <= data.size()); - memcpy(data.data(), &data[start_index], sizeof(T) * size); + memmove(data.data(), &data[start_index], sizeof(T) * size); } /* Shift slice to start of span and modifies start and end data. */ |