Compositor: Fix Dilate/Erode node crash with Step option

It was writing the buffer out of bounds.
Only "Full Frame" mode was affected.
This commit is contained in:
Manuel Castilla 2021-09-29 21:42:46 +02:00
parent 4569d9c0c3
commit f3274bfa70
1 changed files with 2 additions and 1 deletions

View File

@ -783,7 +783,8 @@ static void step_update_memory_buffer(MemoryBuffer *output,
start = half_window + (i - 1) * window + 1;
for (int y = -MIN2(0, start); y < window - MAX2(0, start + window - bheight); y++) {
result.get_value(x, y + start + area.ymin, 0) = selector(temp[y], temp[y + window - 1]);
result.get_value(x + area.xmin, y + start + area.ymin, 0) = selector(temp[y],
temp[y + window - 1]);
}
}
}