A flaw was found in FreeRDP. An out-of-bounds write may occur when the values rect->left
and rect->top
are exactly equal to surface->width
and surface->height
. eg. rect->left
== surface->width
&& rect->top
== surface->height
. This issue can result in a crash.