FreeRDP/libfreerdp
Steve Pronovost 49d9e61884 Fix protocol violation when uploading large ICON
When uploading large ICON (96x96), we end up growing the stream
mid-update. Stream_EnsureCapacity end up reallocating the stream
with a larger capacity to accomodate the large ICON size, but in
doing so, also updating the sealed length for the data currently in
the stream. This breaks the assumption between update_begin_paint
and update_end_paint where the sealed lenght is used to keep track
of the location where we need to update the orders counts after
we're done accumulating update. As a result of the growth and lost
of that location, the number of orders is written to the wrong
location and the resulting stream is invalid which result in a
protocol violation and a connection drop.

The current fix uses a new offsetOrder in the update object to
keep track of where update_end_paint needs to write the number
of orders contained. I think a better fix would be for
Stream_EnsureCapacity to preserve the sealead length of the
stream on growth, but this has a much more significant impact and
careful analysis needs to be done to ensure this doesn't violate
other assumption. Need to follow up with FreeRDP developer to get
their take on this one.
2021-10-21 13:11:21 +02:00
..
cache Added option to disable graphics decoding in client code path 2021-09-20 10:59:59 +02:00
codec Use original height for h264 context, but allocate padded height. 2021-10-19 15:41:49 +02:00
common Fixed freerdp_device_clone for serial devices 2021-10-18 16:09:13 +02:00
core Fix protocol violation when uploading large ICON 2021-10-21 13:11:21 +02:00
crypto Cert update fix (#7382) 2021-10-21 09:07:52 +02:00
gdi Fixed warnings 2021-10-18 16:09:13 +02:00
locale Added /kbd-scancode-list 2021-09-10 15:47:08 +02:00
primitives Fixed uninitialized warnings 2021-09-10 08:16:25 +02:00
utils fix build issues for VS2010 2021-10-20 08:35:16 +02:00
CMakeLists.txt Fixed #7158: detection of arm neon. 2021-07-08 07:54:26 +02:00
freerdp.pc.in Include major version number in library names 2017-01-16 11:11:58 +01:00
FreeRDPConfig.cmake.in cleanup cmake exports and pkg-config files 2016-01-12 17:32:33 +01:00