FreeRDP/server/Windows
Norbert Federa 84577b1ca7 codec/rfx: error checking and various fixes
- removed some unneeded null checks for free()
- fixed a memory leak in shadow_client
- removed rfx_compose_message_header from API

Changed the following functions to BOOL, check the result
where they are called and handle failures:
- rfx_compose_message
- rfx_compose_message_header
- rfx_write_tile
- rfx_write_message_tileset
- rfx_write_message_frame_begin
- rfx_write_message_region
- rfx_write_message_frame_end
- rfx_write_message

rfx_process_message:
- check memory allocation failures
- verify protocol-conform order of data messages to prevents memory
  leaks caused by repeated allocations
- verify that header messages were parsed/received before the
  data messages
- treat unknown rlgr mode as error
- fixed/added error handling
- fixed all callers to check/handle result

rfx_encode_message:
- fixed incorrect usage of realloc
- missing malloc check
- missing check of CreateThreadpoolWork
- correct cleanup on failure (threadpool, memory)
- check rfx_encode_message result

rfx_encode_messages:
- check rfx_split_message result
- correct cleanup on failure
- prevent memory leak on failure

rfx_write_message_context:
- fixed invalid channelId value (must be 0xFF for WBT_CONTEXT)

rfx_process_message_codec_versions:
- fixed invalid read size of codec_version (it is 16bit)

rfx_process_message_channels:
- verify protocol conform channelId value

rfx_process_message_region:
- replaced invalid reallocs with malloc
- read and verify regionType and numTileSets from stream

rfx_process_message_tileset:
- check allocation results
- fixed incorrect usages of realloc

setupWorkers:
- fixed incorrect usages of realloc

rfx_split_message:
- removed dead code
- missing malloc check

rfx_compose_message:
- fixed a memory leak
- check/handle rfx_encode_message result
2015-04-23 15:42:21 +02:00
..
cli Fixed setting of RV_VERSION_PATCH, now BUILD_NUMBER is used for every library. 2014-10-09 16:18:35 +02:00
CMakeLists.txt Merge pull request #1965 from akallabeth/dynamic-addin-naming 2014-10-31 13:42:16 +01:00
ModuleOptions.cmake freerdp: remove vendor-specific options from build system, add automatic ways of including external clients/servers 2013-09-03 20:37:04 -04:00
server.crt wfreerdp-server: initial commit 2012-06-07 19:51:00 -04:00
server.key wfreerdp-server: initial commit 2012-06-07 19:51:00 -04:00
wf_directsound.c winpr: add checks for *alloc 2015-04-08 11:34:37 +02:00
wf_directsound.h channels: rdpsnd refactoring, drdynvc initial server-side code 2013-08-18 21:52:55 -04:00
wf_dxgi.c Using wlog for server now. 2014-09-15 08:55:00 +02:00
wf_dxgi.h wfreerdp-server: handle dxgi access lost error 2012-10-17 16:17:19 -04:00
wf_info.c winpr: fixes and cleanup 2015-04-08 11:34:37 +02:00
wf_info.h Fixed missing includes and invalid replacement. 2014-08-11 09:38:08 +02:00
wf_input.c winpr: add checks for *alloc 2015-04-08 11:34:37 +02:00
wf_input.h wfreerdp-server: fixed compilation 2012-10-11 18:15:34 -04:00
wf_interface.c winpr: add checks for *alloc 2015-04-08 11:34:37 +02:00
wf_interface.h Using wlog for server now. 2014-09-15 08:55:00 +02:00
wf_mirage.c Using wlog for server now. 2014-09-15 08:55:00 +02:00
wf_mirage.h Fixed missing includes and invalid replacement. 2014-08-11 09:38:08 +02:00
wf_peer.c Using wlog for server now. 2014-09-15 08:55:00 +02:00
wf_peer.h Fixed missing includes and invalid replacement. 2014-08-11 09:38:08 +02:00
wf_rdpsnd.c Using wlog for server now. 2014-09-15 08:55:00 +02:00
wf_rdpsnd.h Merge remote-tracking branch 'upstream/master' 2013-02-19 16:36:08 -05:00
wf_settings.c wfreerdp-server: fix non-unicode build 2012-10-17 15:31:21 -04:00
wf_settings.h freerdp: fix headers 2012-10-08 23:02:04 -04:00
wf_update.c codec/rfx: error checking and various fixes 2015-04-23 15:42:21 +02:00
wf_update.h freerdp: fix headers 2012-10-08 23:02:04 -04:00
wf_wasapi.c Using wlog for server now. 2014-09-15 08:55:00 +02:00
wf_wasapi.h channels: rdpsnd refactoring, drdynvc initial server-side code 2013-08-18 21:52:55 -04:00