Norbert Federa
17ceafbb0c
winpr: fix PathCchAddExtension
...
The HRESULT S_FALSE does not indicate an error:
- return E_INVALIDARG instead of S_FALSE
- return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) instead of S_FALSE
Also extended/fixed the corresponding ctest
2015-06-03 16:06:02 +02:00
Norbert Federa
03b0472c29
winpr: fix PathCchAddBackslashEx
...
The HRESULT S_FALSE does not indicate an error:
- return E_INVALIDARG instead of S_FALSE
- return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) instead of S_FALSE
Also extended/fixed the corresponding ctest
2015-06-03 16:06:02 +02:00
Norbert Federa
21e6012226
winpr: fix PathCchAddBackslash
...
The HRESULT S_FALSE does not indicate an error:
- return E_INVALIDARG instead of S_FALSE
- return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) instead of S_FALSE
Also extended/fixed the corresponding ctest
2015-06-03 16:06:01 +02:00
Armin Novak
c6c43d5f06
Writing failure to stderr.
2015-06-02 17:54:27 +02:00
Armin Novak
1c3b38f58b
Fixed image test.
2015-06-02 17:53:16 +02:00
Armin Novak
2a3cd74c02
Fixed image test.
2015-06-02 15:17:54 +02:00
Marc-André Moreau
36b7d9c4e5
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2015-06-02 09:17:30 -04:00
Armin Novak
e6283db1b9
Added missing NULL check.
2015-06-02 10:10:47 +02:00
Armin Novak
d3a88014da
Fixed directory creation checks.
2015-06-02 10:01:10 +02:00
Armin Novak
70df8d8ba9
Fixed static function arguments.
2015-06-02 09:50:59 +02:00
Armin Novak
d1223d3799
Fixed windows known path locations.
2015-06-02 09:50:48 +02:00
David FORT
12f873f1f9
Fixed MessageQueue and callers
2015-05-29 14:24:14 +02:00
Hardening
4586450e27
Merge pull request #2661 from MartinHaimberger/mh-stream-fix
...
stream: check stream_new in winpr and libfreerdp
2015-05-29 14:12:59 +02:00
Martin Haimberger
951a2d2210
stream: check stream_new in winpr and libfreerdp
...
also fixed a few things
2015-05-29 04:46:50 -07:00
Hardening
1b366816a2
Merge pull request #2608 from oshogbo/master
...
Add check to protect memcpy(3) from using NULL pointer.
2015-05-29 10:49:42 +02:00
Hardening
f7f58f64c8
Merge pull request #2646 from eledoux/thread_list
...
fixed a synchronization issue on thread_list
2015-05-28 10:51:53 +02:00
Emmanuel Ledoux
de1a21eadd
winpr-thread: added HP's copyright
2015-05-27 18:24:56 +02:00
Emmanuel Ledoux
206714a270
winpr-thread: thread_list's synchronization based on a pthread_cond_t
2015-05-27 18:15:17 +02:00
Emmanuel Ledoux
f74cd12df2
winpr-thread: a better error message and comments about thread_list
2015-05-26 18:15:57 +02:00
Emmanuel Ledoux
56f34582c7
winpr-thread: added an assertion to enforce that thread_list is correctly set
2015-05-26 17:55:27 +02:00
Emmanuel Ledoux
93127e0a7a
winpr-thread: thread_list's synchronization based on an Event
2015-05-26 17:40:34 +02:00
Bernhard Miklautz
f9c7e03044
winpr: add intrin.h
...
Exposing lzcnt in crt.h might causes compiler errors (redefinition) with
recent versions of gcc (>=4.9) when winpr is included in other projects.
As lzcnt isn't part of crt according to MSDN and also shouldn't be
exported by default it was moved to intrin.h.
The related test was also moved to the top level directory of winpr.
2015-05-26 16:41:29 +02:00
Mariusz Zaborski
80958751e4
Add check to protect memcpy(3) from using NULL pointer.
...
The ntlm_construct_challenge_target_info function can potentially pass NULL as
argument to the ntlm_av_pair_add function (for example DnsDomainName.Buffer).
This NULL finally lands in the CopyMemory (which is macro to the memcpy(3)
function) which can't handle NULL.
2015-05-25 08:32:48 +02:00
Marc-André Moreau
4886c4c9b1
libwinpr-winsock: add WSAIoctl() interface listing for OS X
2015-05-22 19:01:37 -04:00
Marc-André Moreau
36cb1e6dc9
Merge pull request #2639 from awakecoding/master
...
WLog, server-side rdpdr, remote assistance, byteswap, etc
2015-05-22 14:30:11 -04:00
Emmanuel Ledoux
f94ab0033b
winpr-thread: better error message upon a failure of TestThreadExitThread
2015-05-22 19:17:30 +02:00
Emmanuel Ledoux
6f5de27081
winpr-thread:
...
- added the unit test: TestThreadExitThread
- fix: ensure thread_list to be up to date before to call ExitThread()
- possibly resolved: Problems with serial redirection #2389
2015-05-22 18:28:10 +02:00
Marc-André Moreau
7a06640c16
libwinpr-shell: use getpwnam_r
2015-05-22 10:03:21 -04:00
Jakub Adam
73888a57c2
Ensure threads have finished using a barrier before releasing it
...
MSDN documentation says it is ensured that all threads in the barrier
have finished using it before allowing the barrier to be released in
DeleteSynchronizationBarrier(). The winpr re-implementation wasn't
keeping to that requirement, which was causing occasional crashes
when shadow client tried to access already freed barrier structure.
The crash was occuring in winpr_Handle_cleanup() after finished
waiting on a barrier's event.
2015-05-22 13:36:15 +02:00
Petr Sumbera
fe5ce30f92
winsock.c Solaris build fixes
2015-05-21 13:24:03 -07:00
Marc-André Moreau
5526348079
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2015-05-21 13:29:59 -04:00
Marc-André Moreau
c64be497b8
libwinpr-utils: update backtrace utils
2015-05-21 13:25:35 -04:00
Marc-André Moreau
b9c1cddc2e
Merge pull request #2583 from bceverly/OpenBSD-cleanup
...
Two minor source code changes to remove warnings
2015-05-21 10:17:54 -04:00
Norbert Federa
cd0a8e0506
Merge pull request #2630 from hardening/new_2616
...
Add checks for some XXX_New and XXX_Add functions
2015-05-21 16:04:26 +02:00
David FORT
29d372480a
Take in account nfedera's review
2015-05-20 19:19:50 +02:00
Bryan Everly
a3a3efe31e
Fixed mistake with bitwise operator in previous two commits
2015-05-20 12:17:05 -04:00
Marc-André Moreau
7e1dbd505b
Merge branch 'awakecoding' of https://github.com/vworkspace/FreeRDP
...
Conflicts:
channels/rdpdr/server/rdpdr_main.c
2015-05-20 11:40:48 -04:00
Bryan Everly
80af54b169
Moved thread code to OpenBSD only
2015-05-20 10:52:24 -04:00
Marc-André Moreau
29d14773c8
Merge branch 'master' of github.com:FreeRDP/FreeRDP
...
Conflicts:
client/Windows/wf_client.c
libfreerdp/common/assistance.c
2015-05-20 10:12:24 -04:00
Hardening
f8120919af
Add checks for some XXX_New and XXX_Add functions
...
Based on PR #2616
2015-05-18 11:28:00 +02:00
Konrad Witaszczyk
29d3b0bebb
QueryContextAttributes shouldn't return an error when a user or a domain
...
is empty.
2015-05-18 09:42:17 +02:00
Konrad Witaszczyk
95f9e6a641
Pass valid context to CompleteAuthToken function in Negotiate Security Package.
2015-05-15 13:02:40 +02: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
Norbert Federa
1eff1a345e
free can handle NULL perfectly fine
2015-05-11 09:07:39 +02:00
Bernhard Miklautz
d4df3a952b
Merge pull request #2594 from baruchsiach/fix-math-2
...
Don't disable C99 long double math on non Unix platforms
2015-05-08 13:44:26 +02:00
Bernhard Miklautz
81568ff03a
Merge pull request #2596 from akallabeth/wlog_default_out_fix
...
Wlog console output to stderr
2015-05-08 00:49:41 +02:00
Marc-André Moreau
87bb3aa6e0
wfreerdp: fix build
2015-05-07 13:35:39 -04:00
Norbert Federa
f9f59cd29b
Fix unchecked CreateDirectory calls
2015-05-07 13:28:13 +02:00