FreeRDP/server/shadow
David FORT 7c3f8f33ab Fixes for malloc / calloc + other fixes
This patch contains:

* checks for malloc return value + treat callers;
* modified malloc() + ZeroMemory() to calloc();
* misc fixes of micro errors seen during the code audit:
** some invalid checks in gcc.c, also there were some possible
integer overflow. This is interesting because at the end the data are parsed
and freed directly, so it's a vulnerability in some kind of dead code (at least
useless);
** fixed usage of GetComputerNameExA with just one call, when 2 were used
in misc places. According to MSDN GetComputerNameA() is supposed to return
an error when called with NULL;
** there were a bug in the command line parsing of shadow;
** in freerdp_dynamic_channel_collection_add() the size of array was multiplied
by 4 instead of 2 on resize
2015-06-22 19:21:47 +02:00
..
Mac server/shadow: Integrate comment from @hardening: use switch to handle different message id. 2015-06-15 23:54:30 +08:00
Win Fixes for malloc / calloc + other fixes 2015-06-22 19:21:47 +02:00
X11 Fix unchecked strdups 2015-06-22 19:09:59 +02:00
.gitignore shadow: start simplifying X11 shadow server 2014-07-10 16:32:46 -04:00
CMakeLists.txt This is originally to add audio support. Several fixes included: 2015-06-14 21:45:52 +08:00
shadow_audin.c This is originally to add audio support. Several fixes included: 2015-06-14 21:45:52 +08:00
shadow_audin.h This is originally to add audio support. Several fixes included: 2015-06-14 21:45:52 +08:00
shadow_capture.c shadow: fix null ClientDir 2014-10-29 16:11:22 -07:00
shadow_capture.h shadow: improve DXGI support 2014-08-12 16:57:58 -04:00
shadow_channels.c This is originally to add audio support. Several fixes included: 2015-06-14 21:45:52 +08:00
shadow_channels.h This is originally to add audio support. Several fixes included: 2015-06-14 21:45:52 +08:00
shadow_client.c Fixes for malloc / calloc + other fixes 2015-06-22 19:21:47 +02:00
shadow_client.h Fix unchecked CreateEvent calls and misc fixes 2015-04-29 18:18:39 +02:00
shadow_encoder.c Add checks for some XXX_New and XXX_Add functions 2015-05-18 11:28:00 +02:00
shadow_encoder.h libfreerdp-codec: improve compressor interfaces 2014-09-20 15:25:33 -04:00
shadow_encomsp.c This is originally to add audio support. Several fixes included: 2015-06-14 21:45:52 +08:00
shadow_encomsp.h shadow_client: dispose encomsp and remdesk 2015-05-22 14:01:29 +02:00
shadow_input.c Fix formating 2015-04-21 14:20:24 +02:00
shadow_input.h shadow: remove header include dependency on subsystem 2014-07-13 21:20:36 -04:00
shadow_lobby.c librdtk: improve text positioning 2014-10-01 12:18:17 -04:00
shadow_lobby.h rdtk: initial commit 2014-09-29 16:08:08 -04:00
shadow_mcevent.c shadow fix multi-client hang 2015-05-11 00:04:07 +08:00
shadow_mcevent.h shadow fix multi-client hang 2015-05-11 00:04:07 +08:00
shadow_rdpsnd.c This is originally to add audio support. Several fixes included: 2015-06-14 21:45:52 +08:00
shadow_rdpsnd.h This is originally to add audio support. Several fixes included: 2015-06-14 21:45:52 +08:00
shadow_remdesk.c This is originally to add audio support. Several fixes included: 2015-06-14 21:45:52 +08:00
shadow_remdesk.h shadow_client: dispose encomsp and remdesk 2015-05-22 14:01:29 +02:00
shadow_screen.c shadow_screen: allow sub-rectangle to span multiple monitors 2015-05-25 14:19:34 +02:00
shadow_screen.h shadow: initial X11 multi-monitor support 2014-07-14 13:33:20 -04:00
shadow_server.c Fixes for malloc / calloc + other fixes 2015-06-22 19:21:47 +02:00
shadow_subsystem.c Merge pull request #2697 from realjiangms/shadow_audio 2015-06-22 09:52:53 -04:00
shadow_subsystem.h Merge pull request #2697 from realjiangms/shadow_audio 2015-06-22 09:52:53 -04:00
shadow_surface.c Fixed memory leak. 2014-11-17 00:42:05 +01:00
shadow_surface.h shadow: initial X11 multi-monitor support 2014-07-14 13:33:20 -04:00
shadow.c server/shadow: Decouple shadow_subsystem and subsystem implementation detail. 2015-06-14 22:20:47 +08:00
shadow.h shadow fix multi-client hang 2015-05-11 00:04:07 +08:00