Commit Graph

2675 Commits

Author SHA1 Message Date
Armin Novak
bee863521a Fixed _aligned_recalloc
(cherry picked from commit cad1dd39e2)
2021-02-25 09:51:41 +01:00
Armin Novak
cbf2a59dd9 Fixed unit tests run under memory sanitizer
(cherry picked from commit 816e792e3f)
2021-02-25 09:51:41 +01:00
Ondrej Holy
cf3ba75673 client: Fix exit codes for /help and similar option
Currently, non-zero exit code is returned for /version, /buildconfig, /help,
/monitor-list, /kbd-list and /kbd-lang-list command-line options for several
clients. This is against conventions because 0 is usually returned in
such cases. Also, there is potentially another problem that the returned
codes overflow on UNIX systems (where the exit code is a number between 0
and 255). Let's fix the clients to return 0 in the mentioned cases to honor
conventions and 1 for the command-line parsing errors (or -1 for clients
who already use that value).

Fixes: https://github.com/FreeRDP/FreeRDP/issues/6686
(cherry picked from commit 3ee4cabcfa)
2021-02-25 09:51:41 +01:00
Pascal Nowack
a864f0a529 winpr/clipboard: Also save lastWriteTime for FILEDESCRIPTORW
Currently, when a local uri-list is converted into a FILEDESCRIPTORW
list, WinPR doesn't submit the last write time for each file.
The result of this is that the last write time of each file on the
other peer will have the current time and not the actual last write
time that is present on the peer, where the files were copied from.

Fix this by also writing the last write time in addition to the
FD_WRITESTIME flag.

(cherry picked from commit 9ba614a1e3)
2021-02-25 09:51:41 +01:00
akallabeth
f8075d59c5 Fixed definition of FILEDESCRIPTORW
(cherry picked from commit 33df98f204)
2021-02-25 09:51:41 +01:00
akallabeth
77b178f327 Fixed #6632
(cherry picked from commit ceb0e8b4f1)
2020-12-03 09:34:37 +01:00
Armin Novak
8e7760ad98 Ignore NULL streams in StreamPool_Return
(cherry picked from commit 6351885488)
2020-12-01 15:10:23 +01:00
Armin Novak
4fda720036 Added log message for not implemented WinPR SSPI_WINPR functions.
(cherry picked from commit a9d9908bde)
2020-12-01 15:10:23 +01:00
Armin Novak
6aa48902f8 Added log message for not implemented WinPR SSPI functions.
(cherry picked from commit 2686200c3b)
2020-12-01 15:10:23 +01:00
Armin Novak
5e1c0b2ffd Added log message for not implemented WinPR SSPI GSS functions.
(cherry picked from commit ef791456e3)
2020-12-01 15:10:23 +01:00
Armin Novak
c396c5e6f7 Added log message for not implemented Schannel functions.
(cherry picked from commit 65819a7215)
2020-12-01 15:10:23 +01:00
Armin Novak
986e288b81 Added log message for not implemented CREDSSP functions.
(cherry picked from commit 7837f517e5)
2020-12-01 15:10:23 +01:00
Armin Novak
b85e318948 Added log message for not implemented NEGOTIATE functions.
(cherry picked from commit 7d0e54e5f8)
2020-12-01 15:10:23 +01:00
Armin Novak
b38e6f6ae5 Added log message for not implemented NTLM functions.
(cherry picked from commit 58f471c7d9)
2020-12-01 15:10:23 +01:00
akallabeth
757b4106e6 Updated version information for 2.2.0 release 2020-07-07 10:56:21 +02:00
akallabeth
6565326bcd Use CMake to detect availability of getlogin_r
(cherry picked from commit 3a5bfd2bd0)
2020-07-06 11:13:51 +02:00
Armin Novak
abf598b086 Fixed uninitialized value
(cherry picked from commit dc112d1935)
2020-07-06 11:13:45 +02:00
Armin Novak
93bed51ae2 Updated versions to 2.1.2 2020-06-22 12:26:08 +02:00
akallabeth
813204554d Fixed fallback to getlogin for android
(cherry picked from commit caff01877d)
2020-06-22 12:13:56 +02:00
akallabeth
67ffded1ba Removed duplicate semicolon
(cherry picked from commit 308c2c3544)
2020-06-22 12:13:50 +02:00
akallabeth
de3dab1a7d Fixed OOB read in ntlm_av_pair_get
CVE-2020-11097 thanks to @antonio-morales for finding this.

(cherry picked from commit 58a3122250)
2020-06-22 12:13:41 +02:00
akallabeth
ab18f07873 Fixed TrioParse and trio_length limts.
CVE-2020-4030 thanks to @antonio-morales for finding this.

(cherry picked from commit 05cd9ea229)
2020-06-22 12:12:56 +02:00
akallabeth
32717ff9db Replaced gmtime with gmtime_r
(cherry picked from commit a45afe9db7)
2020-06-22 12:12:29 +02:00
akallabeth
3606dfa921 Replaced getlogin with getlogin_r
(cherry picked from commit 36478d3d0b)
2020-06-22 12:12:02 +02:00
akallabeth
8c3f6d2b19 Replaced localtime with localtime_r
(cherry picked from commit 240fdd07b1)
2020-06-22 12:11:54 +02:00
akallabeth
efb99f144b Fixed memory leaks in ntlm
(cherry picked from commit 057b6df4ae)
2020-06-22 12:11:48 +02:00
Armin Novak
c3c02c83ab Respect SECBUFFER_READONLY flag in NTLM EncryptMessage
(cherry picked from commit 8e45a2dd50)
2020-06-22 09:31:07 +02:00
Bernhard Miklautz
ecf172d881 Revert "winpr/library: Use RTLD_GLOBAL for dlopen"
Using RTLD_GLOBAL in LoadLibraryA introduces a different behavior than
expected.

This reverts commit d566e00258.

(cherry picked from commit 529e30c273)
2020-06-22 09:30:46 +02:00
Kobi Mizrachi
0dba34e642 winpr: image: add API to construct bmp header
(cherry picked from commit 920acd4c0e)
2020-06-22 09:29:32 +02:00
Patrick Chin
ab1c021b70 MessageQueue write time to current message not the next
(cherry picked from commit ea4df3f91a)
2020-06-16 09:09:22 +02:00
Ondrej Holy
ef394b61a1 winpr/library: Use RTLD_GLOBAL for dlopen
LoadLibraryA implementation uses the RTLD_LOCAL flag for dlopen currently.
This flag doesn't allow the symbols to be used by the subsequently loaded
libraries. This is a problem for the video channel when -DBUILTIN_CHANNELS=OFF
is used as it uses functions from the geometry channel. Let's use RTLD_GLOBAL
instead to prevent "undefined symbol" errors in such cases.

Fixes: https://github.com/FreeRDP/FreeRDP/issues/6236
(cherry picked from commit d8cd671cc6)
2020-06-16 09:06:33 +02:00
akallabeth
3c33c6e1a2 Prepared version for 2.1.1 2020-05-20 15:55:52 +02:00
Armin Novak
7ab56ab14c Fixed #6201: event handler count check
(cherry picked from commit 018eaa44f5)
2020-05-20 15:41:24 +02:00
akallabeth
2c2dde246a Fixed missing label 2020-05-20 15:41:24 +02:00
akallabeth
9d5bb41445 Removed unused variable warnings
(cherry picked from commit 8052708f3354a686de98b62d641e9d0eb61a74db)
2020-05-20 15:41:24 +02:00
akallabeth
6e348b9a18 Fixed invalid argument to strtok_s
(cherry picked from commit dc4ac3ba17b6a340b96aa3f6363c6fac866696b7)
2020-05-20 15:41:24 +02:00
akallabeth
865239967e Fixed issues with clang sanitizers and alignemt offsets.
(cherry picked from commit 4c1011fec37459ecc11f6c4453bcd693ed614e5d)
2020-05-18 17:10:01 +02:00
akallabeth
0122ebfffd utf8 behaviour fixes
(cherry picked from commit bb78eb4fa6f8618a70995eaf17aba94cc47a1e74)
2020-05-18 17:10:01 +02:00
akallabeth
2897576c3d Fixed memory leak in NTLM test
(cherry picked from commit 135458cf27160d50e6294f87ef80f27f1f65d319)
2020-05-18 17:10:01 +02:00
akallabeth
92fa258748 Fixed BehaviourSanitizer warnings in streams.
(cherry picked from commit 66ea3d0579841b468684e05936fabf654727e720)
2020-05-18 17:10:01 +02:00
akallabeth
538f82e91f Fixed memory leak in ini parser and test functions.
(cherry picked from commit 7f9997595918e8b6a2acec2ff40f5779fa183038)
2020-05-18 17:10:01 +02:00
akallabeth
6b8311a15a Fixed BehaviorSanitizer warnings.
(cherry picked from commit b5dfc15183b752a5d9c6da01225ed281b20001cf)
2020-05-18 17:10:01 +02:00
akallabeth
819aa2a164 Fixed BehaviorSanitizer warnings
(cherry picked from commit 0d28390319025c86e7e9d7cc776d88ef24f9db0e)
2020-05-18 17:10:00 +02:00
akallabeth
449b45e840 Fixed BehaviorSantizer warnings.
(cherry picked from commit 7a509fe27749e006a9a58854c4abb4522fc58c81)
2020-05-18 17:10:00 +02:00
akallabeth
48361c411e Fixed GHSL-2020-100: oob read in ntlm_read_ChallengeMessage
* Added length checks for data read from stream
* Unified function resource cleanup

(cherry picked from commit 8357dedbbf7213b7d0d18f1026145b9a5b92235a)
2020-05-18 17:10:00 +02:00
Kentaro Hayashi
b222b10c7b Fixed typos (Otherweise)
Otherweise ->
Otherw ise
      ^

(cherry picked from commit 148f3c675d)
2020-05-18 17:03:28 +02:00
akallabeth
630415e523 Refactored sam functions to utilize strtok_s
(cherry picked from commit ddb388e152)
2020-05-18 16:56:03 +02:00
akallabeth
64bec7586d Replaced strtok with strtok_s
(cherry picked from commit 7890833af8)
2020-05-18 16:56:03 +02:00
Kobi Mizrachi
efecbf41a9 change use of strtok to strtok_s
(cherry picked from commit 6013a96bff)
2020-05-18 16:56:03 +02:00
akallabeth
2d5ce618bf 2.1.0 release version. 2020-05-08 11:23:05 +02:00