On 01/02/2011 04:34 PM, Thomas Uhl wrote:
> I tried to connect with latest GIT version to a VBOX4 session.
>
> The connect is successfull but after several seconds freerdp crashed:
>
> connecting to localhost:3389
> Legacy RDP encryption negotiated
> freerdp_chanman_post_connect: server name [localhost] chan_man->num_libs [0]
> ui_error: ERROR: pduType version must be 0 and 1 but is 0 and 0
> ui_error: ERROR: pduType version must be 0 and 1 but is 0 and 0
> ui_error: ERROR: pduType version must be 0 and 1 but is 0 and 0
> ui_error: ERROR: pduType version must be 0 and 1 but is 0 and 0
> ui_error: ERROR: pduType version must be 0 and 1 but is 0 and 0
> ui_error: ERROR: pduType version must be 0 and 1 but is 0 and 0
> ui_error: ERROR: pduType version must be 0 and 1 but is 0 and 0
> xfreerdp: rdp.c:1356: process_data_pdu: Assertion `((data_s)->p ==
> (data_s)->end)' failed.
> Aborted

I have pushed a fix to the master branch:

> bug fix: set stream pointer correctly after processing (un)compressed data
>
> This also allows processing of several data PDUs inside the encrypted body of
> one sendDataIndication userData.
>
> AFAIK MS RDP servers never does that, and AFAICS the RDP specification do not
> allow that. (Something similar is however permitted for Fast Path.)
>
> Both mstsc and rdesktop do however process multiple data PDUs, and VirtualBox
> 4.0.0_69151 utilizes that.
>
> We ignored the second PDU, and the assertions for correct processing of
> compressed data noticed that.
>
> Now we set the stream pointer correctly after the first PDU even if we didn't
> process it. The assertions that we process the PDUs that we process correctly
> has been updated too.

The wrong pduType version will be fixed in the next VirtualBox release - 
http://www.virtualbox.org/ticket/8032

/Mads

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to