Commit 51afa1c4 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot
Browse files

Merge topic 'fix_large_screenshots'

ced3df4e Fixed invalid memory writes. Fixes BUG #11557.
parents a18d9a97 ced3df4e
......@@ -460,7 +460,8 @@ void vtkWindowToImageFilter::RequestData(
{
if (idxY >= start_y_offset && idxY < size[0] - end_y_offset)
{
memcpy(outPtr + start_x_offset, pixels1, rowSize - end_x_offset);
memcpy(outPtr + start_x_offset, pixels1,
rowSize - (start_x_offset + end_x_offset));
}
outPtr += outIncrY;
pixels1 += rowSize;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment