FreeRDP/libfreerdp/codec
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 freerdp: get rid of old types 2012-10-09 03:26:39 -04:00
test Fixes for malloc / calloc + other fixes 2015-06-22 19:21:47 +02:00
audio.c Decreased logging verbosity. 2014-09-15 19:51:17 +02:00
bitmap.c libfreerdp-core: refactor codec context management 2014-09-10 00:42:41 -04:00
clear.c Fixes for malloc / calloc + other fixes 2015-06-22 19:21:47 +02:00
color.c codec/color: support for 8bpp color pointer 2015-06-11 16:34:42 +02:00
dsp.c free can handle NULL perfectly fine 2015-05-11 09:07:39 +02:00
h264.c Fixes for malloc / calloc + other fixes 2015-06-22 19:21:47 +02:00
interleaved.c stream: check stream_new in winpr and libfreerdp 2015-05-29 04:46:50 -07:00
jpeg.c libfreerdp-utils: purge old STREAM utils 2013-03-21 16:45:25 -04:00
mppc.c winpr: add checks for *alloc 2015-04-08 11:34:37 +02:00
ncrush.c free can handle NULL perfectly fine 2015-05-11 09:07:39 +02:00
nsc_encode.c coding style fixes 2015-03-30 17:15:45 +02:00
nsc_encode.h freerdp: change uint8, sint8, uint16, sint16 to BYTE, INT8, UINT16, INT16 2012-10-09 03:01:37 -04:00
nsc_sse2.c libfreerdp-codec: refactor NSCodec 2014-09-23 20:00:26 -04:00
nsc_sse2.h codec: got rid of nsc_context_set_cpu_opt 2013-03-05 10:52:18 +01:00
nsc_types.h Replaced logging in libfreerdp with wlog defines. 2014-09-15 08:48:46 +02:00
nsc.c shadow/client context cleanup and unused vars fix 2015-05-21 16:05:05 +02:00
planar.c Fixes for malloc / calloc + other fixes 2015-06-22 19:21:47 +02:00
progressive.c Fix rounding error in progressive codec 2015-05-20 12:26:58 +01:00
region.c resolve comments from hardening 2015-03-21 00:04:30 +08:00
rfx_bitstream.h Merge pull request #763 from FreeRDP/channels 2012-10-09 10:44:44 -07:00
rfx_constants.h freerdp: fix headers 2012-10-08 23:02:04 -04:00
rfx_decode.c libfreerdp-codec: start work on progressive inverse DWT 2014-08-19 14:48:09 -04:00
rfx_decode.h libfreerdp-codec: split stream parsing from tile decoding 2013-08-13 10:09:32 -04:00
rfx_differential.c libfreerdp-codec: optimize RemoteFX dequantization and differentiation 2014-08-18 21:10:56 -04:00
rfx_differential.h libfreerdp-codec: optimize RemoteFX dequantization and differentiation 2014-08-18 21:10:56 -04:00
rfx_dwt.c libfreerdp-codec: start work on progressive inverse DWT 2014-08-19 14:48:09 -04:00
rfx_dwt.h freerdp: change uint8, sint8, uint16, sint16 to BYTE, INT8, UINT16, INT16 2012-10-09 03:01:37 -04:00
rfx_encode.c hardening 2015-03-25 17:38:21 +01:00
rfx_encode.h libfreerdp-codec: separate tile encoding from writing 2013-08-13 14:13:05 -04:00
rfx_neon.c libfreerdp-codec: optimize RemoteFX dequantization and differentiation 2014-08-18 21:10:56 -04:00
rfx_neon.h updated file headers 2013-12-04 11:44:22 +01:00
rfx_quantization.c libfreerdp-codec: optimize RemoteFX dequantization and differentiation 2014-08-18 21:10:56 -04:00
rfx_quantization.h libfreerdp-codec: start working on progressive dequantization 2014-08-18 19:12:08 -04:00
rfx_rlgr.c winpr: add intrin.h 2015-05-26 16:41:29 +02:00
rfx_rlgr.h libfreerdp-codec: remove old RemoteFX RLGR implementation in favour of faster one 2014-08-05 21:41:58 -04:00
rfx_sse2.c libfreerdp-codec: start work on progressive inverse DWT 2014-08-19 14:48:09 -04:00
rfx_sse2.h codec: Fixed NEON detection and incorrect RFX decoding 2013-02-21 07:08:46 -08:00
rfx_types.h Replaced logging in libfreerdp with wlog defines. 2014-09-15 08:48:46 +02:00
rfx.c Fix unchecked CreateThread calls and misc fixes 2015-05-05 13:55:48 +02:00
xcrush.c Replaced logging in libfreerdp with wlog defines. 2014-09-15 08:48:46 +02:00
zgfx.c Fixes for malloc / calloc + other fixes 2015-06-22 19:21:47 +02:00