Fix: memcpy overlapping region ASAN warning in curve trim node

This commit is contained in:
Hans Goudey 2021-07-18 19:24:11 -04:00
parent 75ae328d62
commit 83883ae66a
Notes: blender-bot 2023-09-25 22:09:02 +02:00
Referenced by issue #112856, Nodes: Can't select Reroute nodes
1 changed files with 1 additions and 1 deletions

View File

@ -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. */