Armin Novak
1abd652530
Fixed GetComputerNameExA and GetComputerNameA.
2015-08-25 17:43:22 +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
Vic Lee
ad4cdf8810
winpr: add high-precision GetTickCountPrecise for Windows.
2015-06-11 15:11:19 +08:00
Hardening
75634d460f
Merge pull request #2613 from oshogbo/gethostname
...
At least at FreeBSD - the gethostname(3) function can fail.
2015-05-12 16:18:08 +02:00
Mariusz Zaborski
401152f357
At least at FreeBSD - the gethostname(3) function can fail.
...
Check returned value.
2015-05-12 15:43:38 +02:00
Mariusz Zaborski
b8c5da138d
Function return bool, so lets return FALSE if 0 or TRUE if 1.
2015-05-12 15:40:28 +02:00
Bryan Everly
8c75127a67
Necessary changes to get latest branch working on OpenBSD 5.6
2015-04-21 14:42:06 -04:00
Marc-André Moreau
34181949e6
libwinpr-utils: update BipBuffer
2015-03-13 18:37:48 -04:00
ivan-83
434436b75f
* BSD/FreeBSD build fix
2015-03-10 01:21:28 +03:00
Daryl Poe
af5462eb7b
correct check for lzcnt cpu capability
2014-10-06 13:50:49 -06:00
Armin Novak
b22b897389
Reformatted changed files.
2014-09-09 16:32:22 +02:00
Armin Novak
7e3a1b3073
Now using macro to generate module specific log tag.
2014-09-09 16:32:04 +02:00
Armin Novak
28ece6bb46
Replaced stdio logging with WLog
2014-09-09 16:31:46 +02:00
Marc-André Moreau
87fd839a35
libfreerdp-codec: cleanup and fix __lzcnt on Windows
2014-08-11 18:48:42 -04:00
Bernhard Miklautz
b8415af0d8
Fix compiler warnings.
...
This commit is based on pull request #1493
2014-07-29 05:22:29 +02:00
Armin Novak
ad3255354d
Added WITH_LIBRARY_VERSIONING, allowing to build shared libraries without
...
SOVERSION information. (required by Android)
2014-07-11 11:53:58 +02:00
Bernhard Miklautz
6a49bcfe40
winpr: always build "monolitic"
...
winpr is now always build as single library.
The build option MONOLITHIC_BUILD doesn't influence this behavior anymore.
The only exception is winpr-makecert-tool which is still build as extra
library.
This obsoletes complex_libraries for winpr.
2014-07-10 11:10:58 +02:00
Marc-André Moreau
a6b3fba9b2
libwinpr-sysinfo: implement GetSystemTime, GetLocalTime
2014-05-29 12:39:09 -04:00
Marc-André Moreau
e33d7321bb
libwinpr-timezone: stub functions
2014-05-29 11:58:53 -04:00
Marc-André Moreau
af6fb83d3b
libwinpr-utils: extend wlog prefix format
2014-05-28 10:38:32 -04:00
Marc-André Moreau
472c231876
Merge pull request #1826 from Hobby-Student/master
...
fix FreeBSD compile errors
2014-05-21 10:53:47 -04:00
Marc-André Moreau
a202fe4057
freerdp: fix several type related warnings
2014-05-08 18:02:02 -04:00
Hobby-Student
923d9d6365
FreeBSD compile errors - fix typo #3
2014-05-01 20:02:46 +02:00
Hobby-Student
03315cebe8
FreeBSD compile errors
2014-05-01 15:09:35 +02:00
Bernhard Miklautz
b817e92e5e
cmake: mark required libraries for export
2014-04-23 10:16:02 +02:00
Marc-André Moreau
62199fc46a
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2013-12-10 11:54:03 -05:00
Bernhard Miklautz
2b6b4a6685
updated file headers
2013-12-04 11:44:22 +01:00
Marc-André Moreau
cea8c08328
ifreerdp: fix iOS/OSX platform detection
2013-12-03 15:19:58 -05:00
Marc-André Moreau
55565e056c
freerdp: export targets
2013-10-28 23:06:39 -04:00
Armin Novak
e5c138a5b9
Fixed various memory leaks, allocation size issues and API misuse
...
warnings shown by clang as well as some compiler warnings.
2013-09-05 12:14:34 +02:00
Hardening
7701c9d934
Replace printf(...) by fprintf(stderr, ...)
2013-03-28 23:06:34 +01:00
Bernhard Miklautz
f6810fb138
Fixed warnings for 32 bit builds
2013-03-15 22:49:25 +01:00
Bernhard Miklautz
e4aef1b07f
Merge remote-tracking branch 'upstream/master' into fix_warnings
2013-03-15 20:43:57 +01:00
Bernhard Miklautz
e8eb0d0b44
Fixed formating build warnings (-Wformat)
2013-03-15 20:03:48 +01:00
Bernhard Miklautz
d7b4f68b0c
winpr/sysinfo: cleaned up cpu flag tests
2013-03-15 01:31:48 +01:00
Bernhard Miklautz
3bac044825
winpr/sysinfo: fixes and detection for avx PCLMULQDQ added
...
- fixed defines for avx aes detection
- added detection for avx carry less multiplication (PF_EX_AVX_PCLMULQDQ)
2013-03-15 01:06:33 +01:00
Bernhard Miklautz
81580f10d9
winpr/sysinfo: fixed build and detection when build with AVX
2013-03-14 23:18:21 +01:00
Marc-André Moreau
9eaa530d49
makecert: generate self-signed RDP certificate
2013-03-13 00:26:10 -04:00
Martin Fleisz
a822d736f0
Fixed issues with new sysinfo on windows
2013-03-04 09:40:26 +01:00
Bernhard Miklautz
b8a545d9c9
winpr/sysinfo: restructuring and "aliases" added
...
Added meaningful aliases for the not so clear defines.
2013-03-01 09:02:15 +01:00
Bernhard Miklautz
0ce13c3837
sysinfo: neon is supported on all current ios devices
2013-03-01 09:02:15 +01:00
Bernhard Miklautz
bf7f7f0f60
winpr/sysinfo: added IsProcessorFeaturePresent and IsProcessorFeaturePresentEx
...
These functions can be used to check if an processor feature is supported.
IsProcessorFeaturePresentEx is a extended version which is not available
in the windows API and allows to query additional features.
Currently it works on the following platforms:
- i386/amd64 when compiling with gcc
- ARM on linux
2013-03-01 09:02:14 +01:00
Bernhard Miklautz
b95bf97c20
android: build fix - no librt
...
Android NDK doesn't provide librt.
2013-02-28 11:47:09 +01: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
43fd37de6e
channels/rdpsnd: fix timestamps
2013-02-19 21:21:20 -05:00
Marc-André Moreau
ed33ac84c5
libwinpr-sysinfo: fix hostname detection
2013-01-29 16:18:17 -05:00
Marc-André Moreau
0478449fb4
libwinpr-sysinfo: fix build on Mac OS X
2013-01-23 19:37:50 -05:00
Marc-André Moreau
ebefab1de4
libfreerdp-codec: add processor count detection and auto-enabling of threads in RemoteFX decoder
2013-01-23 19:21:14 -05:00
Marc-André Moreau
da3a3d5c9a
libfreerdp-primitives: cleanup platform definitions
2013-01-23 18:39:48 -05:00
Marc-André Moreau
ec22b89772
libwinpr-sysinfo: added platform-specific macro definitions
2013-01-23 17:46:32 -05:00