Fix: ImBuf: Crash from incorrect of temporary scaling buffer

Mistake in 8317e48108
This commit is contained in:
Hans Goudey 2026-04-21 10:07:23 -04:00
parent 4459004003
commit d6ec967599

View file

@ -312,7 +312,7 @@ static void imb_scale_box(const BufferT *src_buffer,
const bool threaded)
{
BufferT *tmp_buffer = MEM_new_array_uninitialized<BufferT>(
int64_t(channels) * src_size.x * dst_size.y, __func__);
int64_t(channels) * dst_size.x * src_size.y, __func__);
if (dst_size.x < src_size.x) {
scale_down_x_func(
src_buffer, src_size, channels, tmp_buffer, int2(dst_size.x, src_size.y), threaded);