rdpei/server: Fix incorrect PDU length read

The PDU length is a 32-bit unsigned integer and not a 16-bit one.
This commit is contained in:
Pascal Nowack 2025-04-19 20:30:24 +02:00
parent 6a4bbfc047
commit a16cb1da63

View File

@ -718,7 +718,7 @@ UINT rdpei_server_handle_messages(RdpeiServerContext* context)
/* header case */
Stream_Read_UINT16(s, priv->currentMsgType);
Stream_Read_UINT16(s, pduLen);
Stream_Read_UINT32(s, pduLen);
if (pduLen < RDPINPUT_HEADER_LENGTH)
{