Fix handling of bad update requests

We computed a safe area if a client gave us a bogus one, but we didn't
actually use it. Fix this properly and make sure we don't pass on bad
coordinates further.
This commit is contained in:
Pierre Ossman
2021-01-14 13:07:56 +01:00
committed by Lauri Kasanen
parent f54dc7829a
commit 189f503b98

View File

@@ -874,7 +874,7 @@ void VNCSConnectionST::framebufferUpdateRequest(const Rect& r,bool incremental)
// Just update the requested region.
// Framebuffer update will be sent a bit later, see processMessages().
Region reqRgn(r);
Region reqRgn(safeRect);
if (!incremental || !continuousUpdates)
requested.assign_union(reqRgn);