FreeRDP/xrdp — pull request #43 by LawrenceK (2012-12-06 16:33:50+00:00)
Title: Bug/xrdp orders text 2

This fixes a couple of issues that resulted in heap corruption and protocol errors when sending text. The issues whoes up when opening a large text file in notepad and jumping back and forth in the file. I suspect that a small font and large screen exacerbates the issue as you can end up with 8-16K characters on the screen,

i) it takes into account the text length when checking for buffer room.
ii) If the length is greate than buffer_size in check send it still attempts to do the send. This later results in the buffer content keeping growing.

Lawrence.