Commit Graph

23 Commits

Author SHA1 Message Date
Bernhard Miklautz
421b74e85e client/locale: properly check popen return value
popen returns NULL if an error occurs and not < 0.
2015-06-22 19:23:58 +02:00
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
Marc-André Moreau
24a1275c91 libfreerdp-locale: cleanup layout detection 2013-03-06 16:35:50 -05:00
Marc-André Moreau
75f80d0198 libfreerdp-locale: cleanup solaris code 2013-03-06 12:50:25 -05:00
Marc-André Moreau
7d75343e8e libfreerdp-locale: cleanup Mac OS X keycode mapping 2013-03-03 19:30:01 -05:00
Marc-André Moreau
474f0469b4 libfreerdp-locale: add Mac OS X definitions 2013-03-03 18:13:12 -05:00
Marc-André Moreau
1dd901d611 libfreerdp-locale: fix loading virtual scancodes 2013-03-03 17:43:06 -05:00
Marc-André Moreau
44758bfe54 libfreerdp-locale: start moving some code to libwinpr-input 2013-03-03 16:30:31 -05:00
Marc-André Moreau
c0b33a1ae5 libfreerdp-locale: fix Mac OS X build 2013-02-28 22:06:29 -05:00
Marc-André Moreau
5687cd393d libfreerdp-locale: remove old X11 keymaps 2013-02-28 14:49:56 -05:00
Marc-André Moreau
ddf4c6e0ff Merge branch 'master' of github.com:FreeRDP/FreeRDP 2013-02-27 09:38:39 -05:00
Jason Mealins
f8c4fa4938 Hard Coded and Keymap codes fixed for OS X
fixed right menu and both left and right windows keycodes
2013-02-25 17:13:19 -08:00
Jason Mealins
6da989258f VK_RMENU defines right windows key
changing 71 to VK_RMENU
2013-02-25 12:25:07 -08:00
Jason Mealins
f8d0613e69 Fixing LWIN and RWIN keycode definitions
adding in the appropriate scancodes windows keys on mac os x
2013-02-25 12:18:03 -08:00
Marc-André Moreau
fe34a529d5 freerdp: fix build and warnings on Mac OS X 2013-02-21 21:09:42 -05:00
Marc-André Moreau
bc9d103e98 libfreerdp-locale: added static Mac OS X keymap 2013-01-29 00:26:17 -05:00
rdp.effort
0a6c6ec4f3 don't free xkb_layout or xkb_variant when it has not been set 2013-01-16 00:04:04 +01:00
Marc-André Moreau
8a32de3801 libfreerdp: purged source tree from deprecated memory utils 2012-11-21 21:22:06 -05:00
Marc-André Moreau
9d064171a7 freerdp: get rid of old types 2012-10-09 03:26:39 -04:00
Marc-André Moreau
2df7aaad39 libfreerdp-utils: get rid of xstrdup in favor of WinPR _strdup 2012-10-08 23:42:01 -04:00
Marc-André Moreau
9909a12af5 libfreerdp-utils: get rid of xmalloc, xrealloc and xfree 2012-10-08 23:21:26 -04:00
Marc-André Moreau
d5d1eb7762 libfreerdp: add proper config.h inclusions 2012-08-14 17:09:01 -04:00
Marc-André Moreau
19028a27b0 libfreerdp: move all libraries to libfreerdp directory, one step closer to monolithic build option 2012-08-13 23:19:51 -04:00