Commit Graph

26 Commits

Author SHA1 Message Date
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
Bernhard Miklautz
bf73f4e4f1 Fix unchecked strdups
* add missing checks
* adapt function return values where necessary
* add initial test for settings
2015-06-22 19:09:59 +02:00
Norbert Federa
1eff1a345e free can handle NULL perfectly fine 2015-05-11 09:07:39 +02:00
Bernhard Miklautz
12e1d94567 winpr: fixes and cleanup
Integrated notes and issues for the pending pull request
* wf_info:
 * cleanup: remove unnecessary breaks
 * fix typo
 * change usage of calloc
* print.c: fix incorrect check
* makecert.c: cleanup includes
2015-04-08 11:34:37 +02:00
Bernhard Miklautz
850de59b55 winpr: add checks for *alloc
Add missing checks if memory allocation was successful. Also adapt
caller(s) when possible.
2015-04-08 11:34:37 +02:00
Zhang Zhaolong
21d5ed6512 tool: fix incorrect usage of realloc.
Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
2015-03-11 15:00:05 +08:00
Armin Novak
ee8563504d Fixed memory leak. 2014-11-17 00:47:54 +01:00
Armin Novak
8302b169d0 Fixed memory leak 2014-11-17 00:13:50 +01:00
Armin Novak
3d108f0bca Fixed memory leaks. 2014-11-17 00:09:50 +01:00
Marc-André Moreau
7da4621334 librdtk: improve text positioning 2014-10-01 12:18:17 -04:00
Marc-André Moreau
a00ef5d044 winpr-makecert: remove dependency on OPENSSL_Applink on Windows 2014-09-19 16:23:19 -04:00
Marc-André Moreau
a23d5ea527 winpr/makecert: improve command line options 2014-07-17 16:47:29 -04:00
Marc-André Moreau
0fb3bf1dfd winpr/tools/makecert: add pfx support 2014-07-16 17:13:02 -04:00
Bernhard Miklautz
139630be94 makecert: install header file
install the makecert header file for the exported static libary to
winpr/tools/makecert.h
2014-05-07 21:09:34 +02:00
Marc-André Moreau
839bcb42ae wfreerdp: fix build against static openssl library 2014-01-29 15:27:43 -05:00
Marc-André Moreau
7dd95b9587 libwinpr-crypto: improve Schannel unit test 2013-10-11 04:01:07 -04:00
Marc-André Moreau
fae24b1ef9 xfreerdp-server: auto-generate self-signed certificate 2013-04-23 18:17:01 -04:00
Marc-André Moreau
890c418536 winpr-makecert: added file output functions 2013-03-22 17:34:57 -04:00
Marc-André Moreau
c715ff69bc winpr-makecert: improve library/executable separation 2013-03-22 16:59:54 -04:00
Marc-André Moreau
48419c0a0a libwinpr-tools: start splitting makecert tool into library and executable 2013-03-22 16:36:44 -04:00
Marc-André Moreau
79638db42c winpr-makecert: only include OpenSSL's applink.c on Windows 2013-03-13 17:57:13 -04:00
Marc-André Moreau
f0de7c88a8 winpr-makecert: fix OpenSSL applink error 2013-03-13 17:55:42 -04:00
Marc-André Moreau
9eaa530d49 makecert: generate self-signed RDP certificate 2013-03-13 00:26:10 -04:00
Marc-André Moreau
91c12fa312 makecert: accept more parameters 2013-03-12 21:53:41 -04:00
Marc-André Moreau
00cbfdb2af winpr-makecert: start implementing 2013-03-12 17:57:16 -04:00
Marc-André Moreau
fbacea6bad winpr/tools/makecert: stubbed basic makecert wrapper 2012-11-26 22:42:40 -05:00