Commit Graph

20187 Commits

Author SHA1 Message Date
akallabeth
b4976163cd [CMake,simd] unify WITH_SSE2, WITH_AVX2, WITH_NEON
* Add new CMake option WITH_SIMD to enable best available instruction
  type
* Unify simd related defines in single header
2024-12-03 11:54:36 +01:00
Martin Fleisz
4b35fe8cfa Merge pull request #10900 from akallabeth/drive-sync
[channels,drive] allow operation on main thread
2024-12-03 10:17:46 +01:00
akallabeth
861e3bbe65 [channels,drive] allow operation on main thread 2024-12-03 09:58:09 +01:00
akallabeth
7748cbc816 Merge pull request #10904 from joantolo/rdstls-parse-fix
[core,rdstls] fix rdstls parsing
2024-12-03 09:31:27 +01:00
akallabeth
6d0381e36e [core,transport] fix reading of data
in transport_default_read_pdu only try to read the remaining PDU bytes
if we did not already complete that. Calling transport_read_layer_bytes
with a length of 0 returns 0 whereas every other value returns 1 for
success.
2024-12-03 08:48:18 +01:00
Joan Torres
d284d024b6 [core,rdstls] fix rdstls parsing
When parsing the rdstls PDU, don't set the stream position at the end.

To know the pduLength is enough getting the last field length and the
stream position.

This fixes transport_read_layer_bytes failing because it was
getting on toRead = 0.
2024-12-02 17:42:31 +01:00
akallabeth
6b81b6ed78 Merge pull request #10901 from akallabeth/clip-fix
[winpr,clipboard] fix SetClipboardData
2024-11-30 21:14:47 +01:00
akallabeth
9cc79f3797 [winpr,clipboard] fix SetClipboardData
* calloc an additional byte to add (possibly) missing zero termination
* For string types determine length by strnlen
2024-11-30 16:40:24 +01:00
akallabeth
f7e5e6507b Merge pull request #10895 from akallabeth/cmake-format
Cmake format
2024-11-28 14:52:19 +01:00
akallabeth
a2b4b61e18 Merge pull request #10897 from akallabeth/codespell
[codespell] fix spelling mistakes
2024-11-28 12:01:18 +01:00
Armin Novak
601249115f [codespell] fix spelling mistakes 2024-11-28 11:52:22 +01:00
akallabeth
faae38120c [cmake,format] reformat all cmake files 2024-11-27 20:41:48 +01:00
akallabeth
de98cde7b2 [cmake,gprof] rename configuration file 2024-11-27 20:41:44 +01:00
akallabeth
ec684b7885 [cmake,format] add formatter script 2024-11-27 20:41:42 +01:00
akallabeth
47c95aa799 Merge pull request #10877 from akallabeth/websocket-simplify
[core,gateway] refactor websocket support
2024-11-25 14:37:39 +01:00
akallabeth
19b56938bc Merge pull request #10889 from ondrejholy/wip/oholy/x11-segfaults
[client,x11] use xf_lock_x11 in xf_cliprdr_server_format_list
2024-11-25 13:34:04 +01:00
akallabeth
fd0b23e33d Merge pull request #10803 from akallabeth/cleanups2
Fix more warnings
2024-11-25 13:03:15 +01:00
Ondrej Holy
946091bcdb [client,x11] use xf_lock_x11 in xf_cliprdr_server_format_list
Currently, the xfreerdp client segfaults when the
`xf_cliprdr_process_selection_request` and
`xf_cliprdr_server_format_list` functions run concurrently. They are
both reading and writing the `serverFormats`, `numServerFormats`,
`response` and possibly some other properties. Let's use the
`xf_local_x11` in the `xf_cliprdr_server_format_list` function
to prevent this.

See: https://issues.redhat.com/browse/RHEL-68126
2024-11-25 12:49:06 +01:00
akallabeth
bb6642e92f Merge pull request #10886 from akallabeth/nightly-deb
[ci,nightly] make fdk-aac optional
2024-11-22 11:41:14 +01:00
akallabeth
c8252a0610 [ci,nightly] make fdk-aac optional 2024-11-22 11:36:45 +01:00
akallabeth
fdba9bfc46 [winpr,thread] improve unittest 2024-11-22 11:10:43 +01:00
akallabeth
cd1330be80 [client,common] const correct variable declaration 2024-11-22 11:01:01 +01:00
akallabeth
ae3160174f [core,fastpath] fix bulk max size
the type is UINT16 so the maximum size can only be UINT16_MAX
2024-11-22 11:00:57 +01:00
akallabeth
1977338a32 [core,orders] fix update_write_brush
* Fix calls, the fieldFlags need to be masked
* Fix implementation, ensure the size is correct and abort on failures
2024-11-22 11:00:54 +01:00
akallabeth
ec3e8b564e fuzz-verbose-assert 2024-11-22 11:00:51 +01:00
akallabeth
64f4acdd2f [core,gdi] improve range asserts
use WINPR_ASSERT_AT to pinpoint location of call of checker function
2024-11-22 11:00:48 +01:00
akallabeth
0dc709a64d implicit-int-conversion 2024-11-22 11:00:45 +01:00
akallabeth
841151c456 implicit-int-conversion 2024-11-22 11:00:42 +01:00
akallabeth
8e7637ce1b implicit-int-conversion 2024-11-22 11:00:39 +01:00
akallabeth
cbffbd16db [winpr,thread] fix bugprone dec in condition 2024-11-22 11:00:36 +01:00
akallabeth
38494f5ce7 [clang,tidy] deactivate suggestions for boost 2024-11-22 11:00:34 +01:00
akallabeth
3029af1a5a [winpr,synch] check for valid file descriptor 2024-11-22 11:00:32 +01:00
akallabeth
402cc34e8c [winpr,synch] fix timer HANDLE casts 2024-11-22 11:00:30 +01:00
akallabeth
79bbb95884 [client,sdl] use std::min 2024-11-22 11:00:27 +01:00
akallabeth
ecbccecef6 [client,sdl] fix global-constructors 2024-11-22 11:00:25 +01:00
akallabeth
163e74844f [pragma] clang does not support -Wdiscarded-qualifiers 2024-11-22 11:00:22 +01:00
akallabeth
7aa233590b [channels,tsmf] fix incompatible pointer types 2024-11-22 11:00:20 +01:00
akallabeth
f084389cd7 [channels,urbdrc] fix enum-enum conversion
* fix integer type of port, use uint8_t
* cast enum values to uint8_t (enum values are used as constants here
  and multiple different ones are mixed together which provokes this
  warning)
2024-11-22 11:00:08 +01:00
akallabeth
b29c5dc6e0 Merge pull request #10885 from akallabeth/stream-write-fix
[winpr,stream] fix 64bit stream function
2024-11-21 20:18:57 +01:00
akallabeth
136a8998c4 [winpr,stream] fix 64bit stream function
* Fix Stream_Write_UINT64* functions
* Add unit tests to cover that
2024-11-21 18:40:11 +01:00
Armin Novak
4cbdd2c176 [core,gateway] refactor websocket support
* Unify read/write functions
* Unify websocket_context setup/teardown/reset
2024-11-21 16:36:39 +01:00
Armin Novak
2c461d0ea9 [core,freerdp] log state if preconnect fails 2024-11-21 16:34:50 +01:00
Martin Fleisz
234f0f2e5a Merge pull request #10883 from akallabeth/optional-prefix-map
[cmake,compiler] check for GCC/clang greater equal 10
2024-11-21 15:56:49 +01:00
akallabeth
baebc02881 [cmake,compiler] check for GCC/clang greater equal 10
for -fdebug-prefix-map et al check for compilers supporting it.
2024-11-21 15:05:18 +01:00
akallabeth
1b4ea3b3c6 Merge pull request #10882 from amazingfate/fix-floatbar-mouse
[client,X11] ignore mouse events not originating in session window
2024-11-21 12:01:57 +01:00
amazingfate
53ad1ea860 [client,X11] ignore mouse events not originating in session window
This is a relaunch of d4be1717c2, which
was deleted by e136444f51.
2024-11-21 12:01:33 +01:00
akallabeth
2779b663ff Merge pull request #10881 from akallabeth/codespell
Codespell
2024-11-21 11:36:04 +01:00
akallabeth
b5f95e0f87 [codespell] fix spelling mistakes 2024-11-21 11:28:06 +01:00
akallabeth
6e7feb8080 [ci,codespell] add workflow running codespell 2024-11-21 11:28:04 +01:00
akallabeth
91380a60b9 Merge pull request #10880 from stephanebill/master
spell check with codespell
2024-11-21 10:22:50 +01:00