Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-07-19 02:24:11 +0300
committerHans Goudey <h.goudey@me.com>2021-07-19 02:24:11 +0300
commit83883ae66ad3231840d483ff091727b33d2f355b (patch)
tree37b2dc151ed8bd8c15d99275afa26ad2b31c98c2
parent75ae328d629aee6ed9b8adc38f6c2143824581f5 (diff)
Fix: memcpy overlapping region ASAN warning in curve trim node
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc2
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. */