FreeRDP/FreeRDP — Issue #196: cliprdr long format names support
Author: awakecoding
Created: 2011-10-31 23:19:31+00:00
State: open
Labels: regression

There's a serious bug in the current cliprdr plugin where capabilities are ignored, and long format names are improperly handled. When connecting to Windows Server 2008 R2 SP1, the server capabilities are the following:

DBG_CLIPRDR cliprdr_process_general_capability (106): Version: 2
generalFlags (0x0000001E) {
CB_USE_LONG_FORMAT_NAMES
CB_STREAM_FILECLIP_ENABLED
CB_FILECLIP_NO_FILE_PATHS
CB_CAN_LOCK_CLIPDATA
}

The problem then comes in cliprdr_process_format_list where the implementation assumes the usage of the short format name instead of the long usage name. The plugin then falls into an infinite loop, eating the CPU.