Fix: memcpy overlapping region ASAN warning in curve trim node
This commit is contained in:
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
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue