Commit Graph

3808 Commits

Author SHA1 Message Date
akallabeth
8a0cb6607f [core] rdp_handle_message_channel 2025-02-27 20:30:30 +01:00
akallabeth
504e87600c [core,transport] use allocated streams
in transport we end up in a race condition, so do not use the stream
pool for send packets.
2025-02-27 20:30:28 +01:00
akallabeth
4b0febc2d2 Merge pull request #11226 from Devolutions/faulty_string_length_check_in_credssp_auth
[core,credssp_auth] Fix faulty string length check in `credssp_auth_client_init_cred_attributes`
2025-02-22 14:37:19 +01:00
Richard Markiewicz
3ad28b2771 [core,credssp_auth] Fix faulty string length check in credssp_auth_client_init_cred_attributes 2025-02-21 13:32:38 -05:00
akallabeth
bd1c781b88 [warnings] address new warnings on ci 2025-02-18 20:06:35 +01:00
akallabeth
a44985c823 [core,freerdp] send MCS Disconnect Provider Ultimatum PDU
On client side connection termination send a [MS-RDPBCGR] 1.3.1.4.1
User-Initiated on Client disconnect PDU
2025-02-17 10:36:03 +01:00
akallabeth
ea330b4ca5 [core,gcc] improve consistency checks 2025-02-16 14:48:18 +01:00
akallabeth
7bfb8bc576 [core,orders] add sanity checks
Check coordinates of polygon for out of range and abort if detected.
2025-02-14 13:22:48 +01:00
akallabeth
3b7c8042d8 [core,gcc] add monitor rect sanity checks 2025-02-14 13:18:23 +01:00
akallabeth
74cd8d8fe0 [freerdp,warnings] fix -Wunused-parameter 2025-02-13 15:53:54 +01:00
akallabeth
323c6da940 [core] fix warnings and invalid return type 2025-02-13 14:43:31 +01:00
Armin Novak
ac1599333e [common,settings] drop MonitorLocalShiftX|Y compat 2025-02-12 14:04:22 +01:00
Armin Novak
0e006e31fe [warnings] fix sign conversion 2025-02-12 12:52:29 +01:00
akallabeth
9f8ed06f9a [client,cmdling] use a typedef for callback function
typedef freerdp_command_line_handle_option_t to have a common type for
callback functions
2025-02-11 12:21:41 +01:00
akallabeth
0c0e45c6d0 [core,freerdp] New API freerdp_presist_credentials
A new function that allows persisting runtime changes to credential
settings so reconnect/redirect/... does not lose current values.
2025-02-11 12:08:55 +01:00
akallabeth
f0fa8662e8 Merge pull request #10853 from akallabeth/cmake-multiconfig2
Cmake multiconfig2
2025-02-11 11:51:36 +01:00
akallabeth
0ae7c4b52d [cmake] refactor configuration
* Split common stuff to reusable files
* Disable INTERPROCEDURAL_OPTIMIZATION for SDL2/3 resource targets
2025-02-11 11:33:34 +01:00
akallabeth
1bfc9c7c1a [core,update] split update_send_new_or_existing_window 2025-02-11 10:14:54 +01:00
akallabeth
0aab574bbf [core,update] split update_write_bitmap_data 2025-02-11 10:14:51 +01:00
akallabeth
72cf699516 [core,update] split update_send_new_or_existing_notification_icons 2025-02-11 10:14:50 +01:00
akallabeth
4013b3132b [clang,tidy] fix sign warnings 2025-02-10 13:11:16 +01:00
akallabeth
00e61074b2 [unused] eliminate unused functions 2025-02-10 09:32:19 +01:00
akallabeth
9e7e84c9ff [core,orders] fix update_read_delta 2025-02-07 21:19:55 +01:00
akallabeth
da0229191e [core,nla] fix possible memory leak
when no username is used a NULL identity should be passed. Free up this
identity before setting it NULL
2025-02-07 08:55:09 +01:00
akallabeth
4538cefd74 [warnings] remove dead code 2025-02-04 14:55:46 +01:00
akallabeth
1b04ca94f0 [core,settings] fix settings test
* with the new freerdp_settings_set_monitor_def_array_sorted more input
  configurations are considered as valid.
* add a check for the FreeRDP_MonitorLocalShiftX and
  FreeRDP_MonitorLocalShiftY values after providing a monitor
  configuration
2025-01-19 15:31:24 +01:00
akallabeth
745ae2d615 [common,settings] MonitorLocalShift[XY] compat
Allow unsigned access to MonitorLocalShift[XY] values for compatibility
with older releases.
2025-01-19 15:30:58 +01:00
akallabeth
567887fbb0 [core,settings] Fix MONITOR_DEF settings
* Make FreeRDP_MonitorLocalShiftX and FreeRDP_MonitorLocalShiftY signed
* Add function freerdp_settings_set_monitor_def_array_sorted to proplery
  align the MONITOR_DEF array according to RDP requirements
2025-01-19 15:30:56 +01:00
akallabeth
1c7b291dc2 [core,gcc] fix MONITOR_DEF read/write
coordinates are signed.
2025-01-19 15:30:42 +01:00
akallabeth
ea2022b76b [clang,tidy] fix warnings 2025-01-15 09:32:52 +01:00
akallabeth
6dfd18bfb8 [core,timezone] print timezone bias signed 2025-01-14 18:19:16 +01:00
akallabeth
c7c207b026 Websocket checks (#11059) 2025-01-10 10:53:27 +01:00
AndreyBarmaley
0966947f9f [core,channels] fix check stream capacity in freerdp_channel_send_packet (#11057) 2025-01-10 09:59:01 +01:00
Kang Lin
a413d562f9 log: Modify received Heartbeat PDU from debug to trace 2025-01-09 09:13:36 +08:00
akallabeth
d6e23d18d7 [warnings] fix return and overflow warnings 2025-01-08 18:21:57 +01:00
akallabeth
f16a324598 [core,tcp] fix missing socket return check 2025-01-08 00:07:32 +01:00
akallabeth
39a62cd0cf [core,tcp] fix integer cast 2025-01-07 10:15:52 +01:00
gpotter2
f91d33e38c Fix return value of update_check_flush 2025-01-05 06:16:47 +01:00
akallabeth
0969502541 [warnings] fix warnings detected by latest CI build 2025-01-03 09:53:48 +01:00
akallabeth
cc934795e4 [warnings] fix integer casting
* use asserting casts to detect overflows or sign conversions
* code cleanup for issues uncovered by casts
2025-01-01 12:58:34 +01:00
akallabeth
60ed73552f [core,connection] print SSL warnings after init 2024-12-29 10:23:20 +01:00
akallabeth
0244ffe9fa [core,listener] fix possible handle leak 2024-12-25 12:59:57 +01:00
gpotter2
9384d59e8c Fix HAVE_AF_VSOCK_H always being 0
- linux/vm_sockets.h cannot be included without sys/socket.h
- linux <5.11 is missing some fields (like sockaddr_vm.svm_flags and
  VMADDR_FLAG_TO_HOST)
2024-12-23 22:07:17 +01:00
akallabeth
62beb27f23 [core,transport] do not stop providing streams from pool 2024-12-19 16:10:23 +01:00
akallabeth
733f1abebd [core,settings] ensure MonitorDefArray exists
in freerdp_settings_enforce_monitor_exists ensure the array has a valid
size before trying to set a value.
2024-12-19 16:10:20 +01:00
James Le Cuirot
9c11a3a039 [aad] Respect the /server-name command line option
AAD authentication fails when you give a bare IP to /v.
2024-12-19 12:18:53 +00:00
akallabeth
91ae892f91 [winpr,sysinfo] fix use of GetComputerNameExA
The buffer must be large enough to hold MAX_COMPUTERNAME_LENGTH
characters, so the buffer needs to be of size MAX_COMPUTERNAME_LENGTH +
1 or larger to hold the '\0' terminated string.
2024-12-16 17:11:54 +01:00
akallabeth
212f4f70e8 [core,gateway] fix range check in rpc_client_write 2024-12-16 14:01:47 +01:00
akallabeth
1b6fb6fd41 [core,settings] fix initialization of ComputerName 2024-12-16 08:20:22 +01:00
akallabeth
e375556d07 [winpr,sysinfo] fix GetComputerNameA
* Trunctate to at most MAX_COMPUTERNAME_LENGTH characters
* Fix usage of function
2024-12-15 18:09:15 +01:00