Commit Graph

44 Commits

Author SHA1 Message Date
Abhineet-Ayan-Verma
a66b0b3246 Update wf_update.c
+ TAG definition.
+ Required arguments to rfx_context_reset.
+ Replaced RDP_PIXEL_FORMAT_BGRA32 with PIXEL_FORMAT_BGRA32
2017-02-20 18:20:23 +05:30
Norbert Federa
f71b6b46e8 fix string format specifiers
- fixed invalid, missing or additional arguments
- removed all type casts from arguments
- added missing (void*) typecasts for %p arguments
- use inttypes defines where appropriate
2016-12-16 13:48:43 +01:00
Armin Novak
9a1c60885c Unified RFX server color format. 2016-10-06 13:43:15 +02:00
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
Armin Novak
5b5791c8d7 Using wlog for server now. 2014-09-15 08:55:00 +02:00
Marc-André Moreau
90d202ab87 server: fix build on Windows 2014-08-11 19:31:38 -04:00
Marc-André Moreau
e4a4aa4d3a Merge branch 'master' of github.com:awakecoding/FreeRDP into shadow
Conflicts:
	channels/encomsp/client/encomsp_main.c
	libfreerdp/core/tcp.c
	libfreerdp/crypto/certificate.c
	server/Windows/CMakeLists.txt
	server/X11/xf_cursor.c
	server/X11/xf_input.c
	server/X11/xf_interface.c
	server/X11/xf_monitors.c
	server/X11/xf_peer.c
2014-08-11 19:22:33 -04:00
Armin Novak
8d8719e101 Replaced fprintf with DEBUG_WARN 2014-08-11 09:19:47 +02:00
Marc-André Moreau
a732045c91 wfreerdp-server: restore Win8 DXGI 1.2 support 2014-07-17 18:27:40 -04:00
Marc-André Moreau
fd8bbfd3b9 wfreerdp-server: update and fix core functionality 2014-02-28 15:27:05 -05:00
Marc-André Moreau
0fd705c6c7 channels/cliprdr: start server-side implementation 2013-08-16 16:46:47 -04:00
Marc-André Moreau
fe25303656 libfreerdp-codec: internal refactoring 2013-08-13 17:18:59 -04:00
Marc-André Moreau
fdf3ddcf9e freerdp: purge deprecated stream utils 2013-05-08 17:48:30 -04:00
Marc-André Moreau
fd230443c5 freerdp: purge old stream utils 2013-05-08 16:27:21 -04:00
Marc-André Moreau
b4cac74136 xfreerdp-server: fix RemoteFX encoding 2013-05-01 18:15:55 -04:00
Marc-André Moreau
51715636a5 freerdp: remove some deprecated stream utils 2013-04-29 22:35:15 -04:00
Martin Fleisz
c715cdc4a7 wfreerdp-server: Removed old rfx_context_set_cpu_info function 2013-03-04 16:33:37 +01:00
Corey C
a9f09bb9e2 wfreerdp-server: fixed reconnection issue 2013-02-26 19:25:48 -05:00
Corey C
70c5dd555a wfreerdp-server: enabled SSE2 2013-01-30 19:55:37 -05:00
C-o-r-E
b5d3a493aa mfreerdp-server: merged wf_peer.c 2012-11-14 11:05:07 -05:00
Marc-André Moreau
6427c9dd90 libfreerdp-core: rdpSettings refactoring (part 2) 2012-11-07 15:13:14 -05:00
C-o-r-E
4841b05008 wfreerdp-server: refactored monitor related data structures 2012-10-31 17:24:14 -04:00
Corey C
0905ae6f1f wfreerdp-server: merged upstream 2012-10-11 17:14:55 -04:00
Marc-André Moreau
ce13f39de2 Merge pull request #763 from FreeRDP/channels
Major Refactoring + Static Channel System
2012-10-09 10:44:44 -07:00
Vic Lee
26580c9fbb libfreerdp-codec/rfx: remove RLGR output bit masking and let caller clear the stream for faster speed. 2012-10-09 20:47:08 +08:00
Marc-André Moreau
1bf8a45519 freerdp: change uint8, sint8, uint16, sint16 to BYTE, INT8, UINT16, INT16 2012-10-09 03:01:37 -04:00
Marc-André Moreau
5612bc43f8 freerdp: change true/false to TRUE/FALSE 2012-10-09 02:31:28 -04:00
Marc-André Moreau
e60a092d81 freerdp: fix headers 2012-10-08 23:02:04 -04:00
Corey C
36394b3c23 wfreerdp-server: generalized managed api callbacks, peer tracking bug fixes, code cleanup 2012-10-08 22:31:40 -04:00
Corey C
5d0a53a3b3 wfreerdp-server: improved peer tracking, added ability to disconnect individual peers 2012-10-08 15:46:01 -04:00
Corey C
ecad702c98 wfreerdp-server: fix parallel send 2012-10-06 17:09:53 -04:00
Marc-André Moreau
03b19c3f30 libwinpr: fix compilation on Windows 2012-09-28 18:10:37 -04:00
Corey C
0dccc0762d wfreerdp-server: another small fix 2012-09-19 13:42:22 -04:00
C-o-r-E
cb149e4e99 wfreerdp-server: tiny fix 2012-09-19 13:34:37 -04:00
Corey C
77c84cd606 wfreerdp-server: win8 code cleanup 2012-09-18 17:25:20 -04:00
Corey C
052896eb3d wfreerdp-server: refactoring and stabilizing windows 8 parts 2012-09-18 14:07:38 -04:00
Marc-André Moreau
1a011fee45 wfreerdp-server: fix race condition in encoder reset 2012-09-16 23:09:36 -04:00
Marc-André Moreau
d315af5feb wfreerdp-server: fix multiple reconnections deadlock 2012-09-16 21:50:15 -04:00
Marc-André Moreau
2026d3079e libfreerdp-core: code restructuration 2012-09-16 21:05:51 -04:00
Marc-André Moreau
efe82e6ede wfreerdp-server: build CLI interface separate from server library 2012-09-15 22:19:26 -04:00
Marc-André Moreau
271aa3edb5 wfreerdp-server: add support for parallel sending to multiple clients 2012-09-07 22:48:30 +02:00
Marc-André Moreau
c59b7dedad wfreerdp-server: add registry key for framerate 2012-09-07 18:01:36 +02:00
Marc-André Moreau
947e9bead7 wfreerdp-server: refactoring and delaying of initialization of encoder 2012-09-07 06:01:16 +02:00
Marc-André Moreau
e5b5b09c38 wfreerdp-server: start handling more than one connected client at once 2012-09-05 20:03:07 -04:00