Bernhard Miklautz [Tue, 31 Mar 2015 13:20:10 +0000 (15:20 +0200)]
wlog: add missing check
Integrate pull request feedback
Armin Novak [Mon, 30 Mar 2015 09:06:56 +0000 (11:06 +0200)]
Removed scopes.
Armin Novak [Fri, 27 Mar 2015 10:42:49 +0000 (11:42 +0100)]
Removed duplicated NULL pointer checks.
Armin Novak [Fri, 27 Mar 2015 07:10:00 +0000 (08:10 +0100)]
Corrected end of string checks.
Armin Novak [Fri, 27 Mar 2015 07:09:46 +0000 (08:09 +0100)]
Removed INVALID_HANDLE_VALUE.
Armin Novak [Tue, 24 Mar 2015 11:13:41 +0000 (12:13 +0100)]
Removed INVALID_HANDLE_VALUE from types not using it.
Armin Novak [Tue, 24 Mar 2015 08:18:06 +0000 (09:18 +0100)]
Removed INVALID_HANDLE_VALUE from types not using it.
Armin Novak [Mon, 23 Mar 2015 15:07:40 +0000 (16:07 +0100)]
Fixed conversion warnings.
Armin Novak [Mon, 23 Mar 2015 14:58:16 +0000 (15:58 +0100)]
Fixed NULL pointer dereference.
Armin Novak [Mon, 23 Mar 2015 14:22:03 +0000 (15:22 +0100)]
Fixed missing checks for invalid handle.
Armin Novak [Mon, 23 Mar 2015 14:04:23 +0000 (15:04 +0100)]
Fixed use after free and realloc checks.
Bernhard Miklautz [Mon, 30 Mar 2015 19:54:27 +0000 (21:54 +0200)]
Merge pull request #2511 from hardening/fix2399
Fix segfault when the xkb layout has no variants
David FORT [Mon, 30 Mar 2015 19:16:18 +0000 (21:16 +0200)]
Fix segfault when the xkb layout has no variants
This is a fix for #2399: when there's no variants we should not try to scan them.
I have set the RDP US keyboard for the South African layout, if someone has a better
layout...
Note: we should probably set something that is not zero for other layouts
Hardening [Mon, 30 Mar 2015 17:14:59 +0000 (19:14 +0200)]
Merge pull request #2510 from akallabeth/build_date
Added version and build info functions
Hardening [Mon, 30 Mar 2015 17:11:11 +0000 (19:11 +0200)]
Merge pull request #2502 from bmiklautz/capacity
stream: Stream_Ensure*Capacity: change return type
Bernhard Miklautz [Mon, 30 Mar 2015 16:29:32 +0000 (18:29 +0200)]
Integrate feedback from pull request
* orders.c: remove ; at eol
* rdpdr_main.c: simplify error case
* rdpsnd_pulse.c: fix incorrect check
* rdpsnd_main.c: adapt return value according to documentation
* update.c: fix incorrect return values
Armin Novak [Mon, 30 Mar 2015 16:18:14 +0000 (18:18 +0200)]
Fixed return value in test.
Armin Novak [Mon, 30 Mar 2015 16:17:07 +0000 (18:17 +0200)]
Using sprintf_s now.
Armin Novak [Mon, 30 Mar 2015 16:09:02 +0000 (18:09 +0200)]
Now returning const char*
Armin Novak [Mon, 30 Mar 2015 16:05:46 +0000 (18:05 +0200)]
Fixed windows _snprintf.
Armin Novak [Mon, 30 Mar 2015 15:57:16 +0000 (17:57 +0200)]
Added test for freerdp version functions.
Armin Novak [Mon, 30 Mar 2015 15:50:47 +0000 (17:50 +0200)]
Added version and build info functions
Added functions to get
* Version String
* Build Time String
* Git Revision String
and appropriate tests.
Bernhard Miklautz [Mon, 30 Mar 2015 15:23:22 +0000 (17:23 +0200)]
drdynvc: ensure stream != NULL
Bernhard Miklautz [Mon, 30 Mar 2015 15:17:36 +0000 (17:17 +0200)]
cliprdr: ensure stream != NULL
Bernhard Miklautz [Mon, 30 Mar 2015 15:15:45 +0000 (17:15 +0200)]
coding style fixes
Add missing space after if
Bernhard Miklautz [Thu, 26 Mar 2015 16:09:47 +0000 (17:09 +0100)]
stream: Stream_Ensure*Capacity: change return type
Change the return type of Stream_Ensure*Capacity from void to BOOL to be
able to detect realloc problems easily. Otherwise the only way to detect
this was to check if the capacity after the call was >= the required
size.
In case Stream_Ensure*Capacity fails the old memory is still available
and need to freed outside.
This commit also adds checks to most calls of Stream_Ensure*Capacity to
check if the call was successful.
Marc-André Moreau [Mon, 30 Mar 2015 13:35:36 +0000 (09:35 -0400)]
Merge pull request #2492 from bmiklautz/malloc_wrap
Fix compiler warnings and code hardening
Marc-André Moreau [Mon, 30 Mar 2015 12:23:59 +0000 (08:23 -0400)]
Merge pull request #2508 from nfedera/fix-2015-03-30-01
crypto: support MSFT iOS clients with faulty SNI
Marc-André Moreau [Mon, 30 Mar 2015 12:23:40 +0000 (08:23 -0400)]
Merge pull request #2507 from nfedera/fix-2015-03-30-02
nego: fixed X.224 Connection Request PDU parsing
Norbert Federa [Mon, 30 Mar 2015 11:48:51 +0000 (13:48 +0200)]
crypto: support MSFT iOS clients with faulty SNI
Microsoft iOS Remote Desktop Clients eventually send NULL-terminated
hostnames in SNI which is not allowed in the OpenSSL implementation.
Since we're not using SNI this commit adds an OpenSSL TLS extension
debug callback which modifies the SSL context in a way preventing it
from parsing this extension
Norbert Federa [Mon, 30 Mar 2015 11:07:03 +0000 (13:07 +0200)]
nego: fixed X.224 Connection Request PDU parsing
The X.224 Connection Request PDU might contain an optional cookie or
routing token before the optional RDP Negotiation Request (rdpNegReq).
If present, both of these fields must be terminated by a 0x0D0A
two-byte sequence. It seems that until now FreeRDP has incorrectly
assumed that a token or cookie must always be present.
If that was not the case, FreeRDP was searching for 0x0D0A until it
arrived at the end of the stream which prevented the remaining data
(RDP Negotiation Request, RDP Correlation Info) from being parsed.
Bernhard Miklautz [Thu, 26 Mar 2015 15:42:54 +0000 (16:42 +0100)]
Merge pull request #2483 from akallabeth/feat/freerdp_set_last_error_name
Feat/freerdp last error name
Hardening [Thu, 26 Mar 2015 14:58:05 +0000 (15:58 +0100)]
Merge pull request #2498 from TaGUNil/tsmf_fix_memory_leak
Fix memory leak in TSMF video playback
tagunil [Thu, 26 Mar 2015 10:38:09 +0000 (13:38 +0300)]
tsmf: free frame data after processing
Vic Lee [Thu, 26 Mar 2015 04:04:08 +0000 (12:04 +0800)]
Merge pull request #2493 from llyzs/llyzs
tls: revert checking SSL_ERROR_SYSCALL which may cause deadlock.
Bernhard Miklautz [Wed, 25 Mar 2015 17:03:11 +0000 (18:03 +0100)]
Merge pull request #2494 from akallabeth/openh264_link_fix
Fixed OpenH264 linking
Bernhard Miklautz [Wed, 25 Mar 2015 16:37:46 +0000 (17:37 +0100)]
Integrate feedback from pull request (#2492)
* shell: add missing NULL checks
* thread: handle case where HAVE_EVENTFD_H isn't defined
* wlog: return NULL instead of 0
* wlog: use g_RootLog instead of WLog_GetRoot
otherwise a new root might be initialized on uninit
* indentation and style fixes
Bernhard Miklautz [Wed, 25 Mar 2015 11:11:22 +0000 (12:11 +0100)]
opensl: remove unnecessary memset
Bernhard Miklautz [Mon, 23 Mar 2015 16:35:11 +0000 (17:35 +0100)]
Fix compiler warnings
gcc 4.7.2
* warning: value computed is not used [-Wunused-value]
* warning: unused variable ‘oss’ [-Wunused-variable]
Bernhard Miklautz [Mon, 23 Mar 2015 16:25:23 +0000 (17:25 +0100)]
hardening
Start to add missing checks for:
* *alloc
* *_New
Bernhard Miklautz [Tue, 10 Mar 2015 11:54:52 +0000 (12:54 +0100)]
gdi/gfx: remove unused variables
Bernhard Miklautz [Tue, 10 Mar 2015 11:54:30 +0000 (12:54 +0100)]
gdi: remove unnecessary includes
Bernhard Miklautz [Tue, 10 Mar 2015 11:53:31 +0000 (12:53 +0100)]
gdi: remove dead code
Bernhard Miklautz [Tue, 10 Mar 2015 11:22:29 +0000 (12:22 +0100)]
asn1: use enum instead of returning a fixed value
Bernhard Miklautz [Tue, 10 Mar 2015 11:22:04 +0000 (12:22 +0100)]
rdtk: remove redundant casts
Armin Novak [Wed, 25 Mar 2015 09:41:40 +0000 (10:41 +0100)]
Added openh264_dll to library name hints.
Vic Lee [Wed, 25 Mar 2015 08:06:32 +0000 (16:06 +0800)]
tls: revert checking SSL_ERROR_SYSCALL which may cause deadlock.
Martin Fleisz [Mon, 23 Mar 2015 15:06:12 +0000 (16:06 +0100)]
Merge pull request #2482 from llyzs/llyzs
tls: fix error handling of no error code.
Bernhard Miklautz [Mon, 23 Mar 2015 13:24:48 +0000 (14:24 +0100)]
Merge pull request #2489 from akallabeth/security_fixes
Security fixes
Armin Novak [Mon, 23 Mar 2015 13:14:38 +0000 (14:14 +0100)]
Fixed uninitialized test argument buffer.
Armin Novak [Mon, 23 Mar 2015 13:10:49 +0000 (14:10 +0100)]
Fixed pipe cleanup.
Hardening [Fri, 20 Mar 2015 21:12:48 +0000 (22:12 +0100)]
Merge pull request #2443 from realjiangms/fix_region
Incorrect extents calculation in region16_intersect_rect (libfreerdp/codec/region.c)
zihao.jiang [Fri, 20 Mar 2015 17:07:54 +0000 (01:07 +0800)]
Add ascii art for norbert_test_case
zihao.jiang [Fri, 20 Mar 2015 16:04:30 +0000 (00:04 +0800)]
resolve comments from hardening
zihao.jiang [Fri, 20 Mar 2015 15:40:48 +0000 (23:40 +0800)]
fix tab/space style
zihao.jiang [Fri, 20 Mar 2015 12:55:06 +0000 (20:55 +0800)]
Fixes extents of region16_intersect_rect.
See Issue #2443.
When there's more than 2 rectangles in the region structure, region16_intersect_rect would calculate extents by all 'intersected' sub rectangles.
But it always extend the extents to (0,0) because it initialize the new extents as (0,0,0,0) and union later rectangles with this empty point by simple MIN/MAX calculation.
Also fixed rectangle_is_empty although it has not been used yet. The function does not work as its name.
Reuse norbert case. That case is enough for the intersect fix, but the expected result is not correct. The test case is also fixed.
Added test case to check empty rectangle.
Vic Lee [Thu, 19 Mar 2015 04:48:04 +0000 (12:48 +0800)]
tls: retry for all SSL_ERROR_SYSCALL errors.
Marc-André Moreau [Thu, 19 Mar 2015 16:21:56 +0000 (12:21 -0400)]
Merge pull request #2484 from dvincent-devolutions/gateway
RDP8 Gateway support
Marc-André Moreau [Thu, 19 Mar 2015 16:13:37 +0000 (12:13 -0400)]
libfreerdp-core: fix rdg.c header include
Marc-André Moreau [Thu, 19 Mar 2015 16:08:30 +0000 (12:08 -0400)]
libfreerdp-core: fix rdg.h header include
Marc-André Moreau [Thu, 19 Mar 2015 15:44:47 +0000 (11:44 -0400)]
libfreerdp-core: add configurable TSG/RGB fallback, fix edge cases
Marc-André Moreau [Thu, 19 Mar 2015 13:41:50 +0000 (09:41 -0400)]
Merge branch 'gateway' of https://github.com/dvincent-devolutions/FreeRDP into gateway
Marc-André Moreau [Thu, 19 Mar 2015 13:38:16 +0000 (09:38 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP into gateway
Marc-André Moreau [Thu, 19 Mar 2015 13:35:57 +0000 (09:35 -0400)]
Merge pull request #2475 from hardening/winpr_moreops
Implement ReadFile() and WriteFile() as handle operation
Marc-André Moreau [Thu, 19 Mar 2015 13:35:31 +0000 (09:35 -0400)]
Merge pull request #2478 from akallabeth/win_sw_gdi_fix
Fixed resize for software GDI.
Denis Vincent [Thu, 19 Mar 2015 13:17:56 +0000 (09:17 -0400)]
libfreerdp-core: minor code corrections
Armin Novak [Thu, 19 Mar 2015 13:17:48 +0000 (14:17 +0100)]
Removed unused define.
Armin Novak [Thu, 19 Mar 2015 10:11:43 +0000 (11:11 +0100)]
fixed log message arguments.
Armin Novak [Thu, 19 Mar 2015 10:05:16 +0000 (11:05 +0100)]
Added error name and string functions.
Added new functions allowing to get a string representation of an error code
and a description of the error for connect and base error classes.
Denis Vincent [Wed, 18 Mar 2015 20:13:32 +0000 (16:13 -0400)]
libfreerdp-core: added fallback to RPC.
Marc-André Moreau [Wed, 18 Mar 2015 13:48:21 +0000 (09:48 -0400)]
libfreerdp-core: fix RDG http receive
Marc-André Moreau [Tue, 17 Mar 2015 20:54:45 +0000 (16:54 -0400)]
libfreerdp-core: fix RDG valgrind issues
Marc-André Moreau [Tue, 17 Mar 2015 20:09:17 +0000 (16:09 -0400)]
libfreerdp-core: fix some RDG valgrind issues
Marc-André Moreau [Tue, 17 Mar 2015 19:13:11 +0000 (15:13 -0400)]
libfreerdp-core: fix rdg event handles
Marc-André Moreau [Tue, 17 Mar 2015 18:54:04 +0000 (14:54 -0400)]
Merge branch 'gateway' of https://github.com/dvincent-devolutions/FreeRDP into gateway
Denis Vincent [Tue, 17 Mar 2015 18:54:16 +0000 (14:54 -0400)]
libfreerdp-core: Initial RDG support.
Armin Novak [Tue, 17 Mar 2015 12:02:41 +0000 (13:02 +0100)]
Fixed resize for software GDI.
David FORT [Mon, 16 Mar 2015 20:29:19 +0000 (21:29 +0100)]
Implement ReadFile() and WriteFile() as handle operation
Marc-André Moreau [Mon, 16 Mar 2015 18:01:43 +0000 (14:01 -0400)]
libfreerdp-codec: add support for 16 color palette image copy
Marc-André Moreau [Mon, 16 Mar 2015 17:27:27 +0000 (13:27 -0400)]
libfreerdp-codec: add support for 1bpp image copy
Marc-André Moreau [Mon, 16 Mar 2015 13:37:00 +0000 (09:37 -0400)]
Merge pull request #2474 from awakecoding/master
Test Fixes, BipBuffer, TSG Cleanup, SCardTransmit Fix
Marc-André Moreau [Mon, 16 Mar 2015 13:26:38 +0000 (09:26 -0400)]
freerdp: fix failing tests
Marc-André Moreau [Mon, 16 Mar 2015 12:55:06 +0000 (08:55 -0400)]
libfreerdp-gdi: disable broken BitBlt tests
Marc-André Moreau [Mon, 16 Mar 2015 12:02:23 +0000 (08:02 -0400)]
Merge pull request #2473 from akallabeth/force_cmdline_flags
Force cmdline to ignore unknown keywords
Marc-André Moreau [Mon, 16 Mar 2015 12:01:54 +0000 (08:01 -0400)]
Merge branch 'master' of github.com:FreeRDP/FreeRDP
Marc-André Moreau [Mon, 16 Mar 2015 11:51:46 +0000 (07:51 -0400)]
Merge pull request #2469 from dupondje/master
libfreerdp-core: Initialize values correctly
Marc-André Moreau [Mon, 16 Mar 2015 11:48:06 +0000 (07:48 -0400)]
Merge pull request #2472 from hardening/winpr_ops_rebased
Winpr ops rebased
David FORT [Mon, 16 Mar 2015 10:19:45 +0000 (11:19 +0100)]
Fixed the test for named pipe creation
All credits goes to @akallabeth.
David FORT [Mon, 16 Mar 2015 09:40:38 +0000 (10:40 +0100)]
Changes for upstream changes on pipe
David FORT [Sun, 15 Mar 2015 23:29:37 +0000 (00:29 +0100)]
Make handle operations static
This patch moves the handle operations in a static struct.
Armin Novak [Mon, 16 Mar 2015 09:25:31 +0000 (10:25 +0100)]
Added ignore unkown keyword flag to detection.
Armin Novak [Mon, 16 Mar 2015 09:15:37 +0000 (10:15 +0100)]
Added flag to ignore unknown keywords
freerdp_client_settings_parse_command_line now allows ignoring
unknown keywords.
Jean-Louis Dupond [Sun, 15 Mar 2015 13:09:16 +0000 (14:09 +0100)]
libfreerdp-core: Initialize values correctly
Bernhard Miklautz [Sun, 15 Mar 2015 11:30:49 +0000 (12:30 +0100)]
Merge pull request #2468 from dupondje/master
fix size error introduced in commit
99b14815a53e556080f459a4998d94244803...
Jean-Louis Dupond [Sun, 15 Mar 2015 10:50:10 +0000 (11:50 +0100)]
Marc-André Moreau [Sat, 14 Mar 2015 20:21:06 +0000 (16:21 -0400)]
Merge pull request #2467 from akallabeth/named_pipe_fix
Named pipe fix
Marc-André Moreau [Sat, 14 Mar 2015 00:22:21 +0000 (20:22 -0400)]
libwinpr-utils: improve BipBuffer
Armin Novak [Fri, 13 Mar 2015 23:49:49 +0000 (00:49 +0100)]
Proper default values for fds.
Armin Novak [Fri, 13 Mar 2015 23:34:44 +0000 (00:34 +0100)]
Fixed missing callbacks for named pipes.
Marc-André Moreau [Fri, 13 Mar 2015 22:37:48 +0000 (18:37 -0400)]
libwinpr-utils: update BipBuffer