FreeRDP/libfreerdp/gdi
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
..
include Fix GDI return values and other fixes 2015-04-21 14:18:07 +02:00
test fixed multiple missing gdi return value checks 2015-05-08 21:39:23 +02:00
8bpp.c Fix GDI return values and other fixes 2015-04-21 14:18:07 +02:00
16bpp.c Fix GDI return values and other fixes 2015-04-21 14:18:07 +02:00
32bpp.c Fix GDI return values and other fixes 2015-04-21 14:18:07 +02:00
bitmap.c Fix GDI return values and other fixes 2015-04-21 14:18:07 +02:00
brush.c change return types of callbacks to BOOL 2015-04-21 14:18:07 +02:00
clipping.c freerdp: fix headers 2012-10-08 23:02:04 -04:00
CMakeLists.txt Merge pull request #2097 from awakecoding/egfx 2014-09-12 15:12:52 -04:00
dc.c Fixes for malloc / calloc + other fixes 2015-06-22 19:21:47 +02:00
drawing.c libfreerdp-codec: fix unit test compilation 2014-03-29 12:37:16 -04:00
gdi.c Merge branch 'master' of github.com:FreeRDP/FreeRDP 2015-05-20 10:12:24 -04:00
gdi.h freerdp: change uint8, sint8, uint16, sint16 to BYTE, INT8, UINT16, INT16 2012-10-09 03:01:37 -04:00
gfx.c Fix two cases of leaked regions in gdi/gfx 2015-05-20 12:35:24 +01:00
graphics.c fixed multiple missing gdi return value checks 2015-05-08 21:39:23 +02:00
graphics.h change return types of callbacks to BOOL 2015-04-21 14:18:07 +02:00
line.c freerdp: fix headers 2012-10-08 23:02:04 -04:00
palette.c libfreerdp-gdi: disable broken BitBlt tests 2015-03-16 08:55:06 -04:00
pen.c change return types of callbacks to BOOL 2015-04-21 14:18:07 +02:00
region.c Fixes for malloc / calloc + other fixes 2015-06-22 19:21:47 +02:00
shape.c freerdp: get rid of old types 2012-10-09 03:26:39 -04:00