Commit Graph

5185 Commits

Author SHA1 Message Date
jsorg71 3446614961 Merge pull request #3320 from jsorg71/nvenc
add support for nvenc and accel_assist
2025-02-21 22:39:57 -08:00
Jay Sorg 75b9304304 add grid options to sesman.ini 2025-02-16 17:34:51 -08:00
Jay Sorg 6dcb8ffe79 add support for nvenc and accel_assist 2025-02-16 17:34:51 -08:00
matt335672 6889a0731d Merge pull request #3433 from matt335672/coverity_scan
Address Coverity mutex issues
2025-02-14 17:09:53 +00:00
matt335672 67fbccc539 Address Coverity mutex issues
Coverity has generated a number of 'Data race condition' and 'Double
lock' false positives. A lot of these seem to be caused by the NULL
guard in tc_mutex_unlock() not being paired with a NULL guard in
tc_mutex_lock(). This PR adds a NULL guard to tc_mutex_lock().

It should be noted, that on Linux at least, passing NULL to
tc_mutex_lock() causes a segfault. We clearly aren't doing this at the
moment, or we'd know about it. A log message is generated if a NULL
call is made, rather than failing silently.
2025-02-14 11:57:42 +00:00
matt335672 fa9cc88389 Merge pull request #3413 from matt335672/detect_noopenh264
Cope with broken OpenH264 encoder
2025-02-13 11:29:28 +00:00
matt335672 8c69cb00ef Merge pull request #3429 from matt335672/add_hu_kbd
Add Hungarian keyboard
2025-02-12 09:44:32 +00:00
matt335672 fb9e543b37 Add xorgxrdp keyboard 040e -> hu 2025-02-11 09:53:14 +00:00
matt335672 bc6a91c935 Add Hungarian keyboard km-0000040e.toml 2025-02-11 09:53:14 +00:00
matt335672 d86dc49423 Merge pull request #3428 from matt335672/update_freebsd_ci
Bump Cirrus CI to 14.2
2025-02-11 09:52:53 +00:00
matt335672 023dbf266b Bump Cirrus CI to 14.2 2025-02-11 09:42:56 +00:00
matt335672 5800c4c5c7 Merge pull request #3426 from matt335672/coverity_scan
More coverity fixes
2025-02-10 16:03:24 +00:00
matt335672 f376196c15 Coverity CID 468135 2025-02-10 15:31:46 +00:00
matt335672 8769481136 Coverity CID 468118 2025-02-10 15:31:34 +00:00
matt335672 cb90458609 Coverity CID 468116 2025-02-10 15:31:19 +00:00
matt335672 6088ba3f3b Address offline Coverity issue
This Coverity issue was encountered in a private build, but does not
appear to be in the Github CI build. Coverity is suspecting a copy-paste
betweem these lines in sound.c:-

1838: xstream_copyin(s, &g_stream_inp->data[g_stream_inp->size - g_bytes_in_stream], i);
1844: xstream_copyin(s, &g_stream_inp->data[g_stream_inp->size - g_bytes_in_stream], g_bytes_in_stream);

An inspection of the code shows this to bre a false positive
2025-02-10 15:26:55 +00:00
matt335672 f7543c2586 Coverity CID 468100 2025-02-10 15:26:34 +00:00
matt335672 aae69f4eae Merge pull request #3422 from matt335672/coverity_scan
Update TCP proxy to address Coverity errors
2025-02-04 12:31:17 +00:00
matt335672 e169733e1e Update TCP proxy to address Coverity errors
Coverity seems to have some problems with the loop(s) copying data from
one socket to another, in that it assume that eventually an integer
overflow will occur. It's not obvious why this should be flagged, but
this seems likely to be a false positive.

This commit avoids the integer issue by using a simple pointer + count
mechanism.

The socket copy code has been placed in a separate function - before it
was duplicated. Minor fixes have been made to error reporting around the
connection code.
2025-02-04 12:23:24 +00:00
matt335672 d924440871 Merge pull request #3421 from matt335672/coverity_scan
Address more Coverity warnings
2025-02-03 15:54:58 +00:00
matt335672 b7a94bdb0a Coverity CID 468157 2025-02-03 15:32:55 +00:00
matt335672 eff8ba75ee Coverity CID 468140 2025-02-03 15:32:55 +00:00
matt335672 c122e0563d Coverity CID 468110/468131 - fix newly detected error
THe previous commit unmasked another potential error in Coverity,
which is addressed by tightening up return value restrictions.
2025-02-03 15:32:55 +00:00
matt335672 2d2934241c Coverity CID 468110/468131
file descriptors cannot be zero when not in use. This commit
enforces that for the test TCP proxy.
2025-02-03 15:32:55 +00:00
matt335672 db32f9c6a3 Coverity CID 468119
Add additional check to prevent Coverity assuming the worst
2025-02-03 15:32:55 +00:00
matt335672 825070beb6 Add software H.264 code to Coverity scan 2025-01-31 12:13:39 +00:00
matt335672 195d04a7d5 Check the H.264 library works before trying to load it
We found during deployment that it is possible for some configurations
to have the build-time noopenh264 library installed, rather than the
openh264 library. This causes a failure which is difficult to diagnose.
2025-01-31 12:13:39 +00:00
matt335672 c1042e8dc2 Merge pull request #3418 from matt335672/fix_typo
Fix typo around lame development package
2025-01-31 11:15:42 +00:00
matt335672 6757b90e92 Fix typo around lime development package
Package for RPM-based systems is lame-devel rather than lamemp3-devel
2025-01-31 10:55:42 +00:00
matt335672 7eb96dd7f8 Merge pull request #3410 from matt335672/coverity_scan
Fix more coverity warnings
2025-01-27 12:18:35 +00:00
matt335672 8196314ad0 Fix Coverity warnings in neutrinordp
The automated Coverity scan does not currently include neutrinordp

Two problems fixed:-
1) MAX_STATIC_CHANNELS at 31 is bigger than freerdp->sessings->channels
   (16)
2) pamusername in the mod parameters is assumed to be 256 bytes when
   it is written to.
2025-01-27 11:39:38 +00:00
matt335672 201cdc1aea Fix coverity warning over mem leak in smartcard code 2025-01-24 11:36:40 +00:00
matt335672 b56b2da061 Fix potential double-free (Coverity)
xrdp_wm_clear_popup() clears down a popup window, but does not
clear the pointer. This can potentially lead to a double-free on
the popup window bitmap.
2025-01-24 11:27:29 +00:00
matt335672 0f46b7961c Fix Coverity error triggered in utf8_get_next_char() 2025-01-24 11:21:32 +00:00
matt335672 64cfeb3acd Merge pull request #3402 from mvf/manpage-fix
xrdp.8.in: Fix "SEE ALSO" refs to `xrdp-sesman`, `xrdp-sesrun`
2025-01-20 09:54:39 +00:00
Matthias von Faber 6a92ee1697 xrdp.8.in: Fix "SEE ALSO" refs to xrdp-sesman, xrdp-sesrun 2025-01-19 12:41:25 +01:00
matt335672 0a456cb096 Merge pull request #3397 from matt335672/update_upload_artifact
CI: Move to V4 of upload-artifact
2025-01-16 15:50:03 +00:00
matt335672 110df32016 CI: Move to V4 of upload-artifact
https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
2025-01-16 15:37:43 +00:00
matt335672 0bef59a748 Merge pull request #3396 from matt335672/fix_32bit_build
Fix 32-bit CI build
2025-01-15 12:03:47 +00:00
matt335672 3657b5acdd Fix 32-bit CI build
Operating System
  Ubuntu
  24.04.1
  LTS
Runner Image
  Image: ubuntu-24.04
  Version: 20250105.1.0
  Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20250105.1/images/ubuntu/Ubuntu2404-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20250105.1

Removing libibus-1.0-dev:i386 and libimlib2-dev:i386 from the 32-bit
build fixes this error:-

The following packages have unmet dependencies:
 shim-signed : Depends: grub-efi-amd64-signed (>= 1.191~) but it is not going to be installed or
                        grub-efi-arm64-signed (>= 1.191~) but it is not installable or
                        base-files (< 12.3)
               Depends: grub-efi-amd64-signed (>= 1.187.2~) but it is not going to be installed or
                        grub-efi-arm64-signed (>= 1.187.2~) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

This is somewhat difficult to comprehend, as the following packages are
installed:-

base-files                         13ubuntu10.1
grub-efi-amd64-signed              1.202+2.12-1ubuntu7
shim-signed                        1.58+15.8-0ubuntu1
2025-01-15 11:48:12 +00:00
matt335672 30b47ba41b Merge pull request #3394 from matt335672/more_coverity_fixes
Address some Coverity warnings
2025-01-15 09:50:32 +00:00
matt335672 ff70842174 Update manpage after review 2025-01-14 11:38:21 +00:00
matt335672 2a4b40a20c Address some Coverity warnings 2025-01-13 15:24:33 +00:00
matt335672 d2e96fe2d2 Add XAuthorityInSystemDir option
Add an option to allow XAUTHORITY to be moved away from $HOME.

This is modelled on the lightm 'user-authority-in-system-dir' option,
and also current GDM default behaviour.
2025-01-13 11:51:27 +00:00
matt335672 b61dfb1096 Fix minor typo in sesman.ini(5) 2025-01-13 11:51:27 +00:00
matt335672 a0f1b65aee Merge pull request #3392 from matt335672/fix_cov_err
Fix recent coverity-reported issues
2025-01-13 11:48:30 +00:00
matt335672 b04743066d Fix coverity-reported issues
The errors in sesman/chansrv/chansrv_fuse.c appear to be false positives
caused by allocating xhandle->dir_handle, and then
casting xhandle to an integer in xfuse_handle_to_fuse_handle(), thus
hiding xhandle->dir_handle

For both occurrences, the logic has been simplified and made the same,
and a comment has been added to suppress the error.
2025-01-13 10:27:29 +00:00
matt335672 d98c883dfb Merge pull request #3387 from matt335672/fix_mem_leak_vnc_clip
Fix potential memory leak in vnc_clip.c
2025-01-09 11:34:41 +00:00
matt335672 99b6aaff6c Merge pull request #3382 from Bad-ptr/devel
Add sesman.ini FuseMountNameColonCharReplacement option
2025-01-09 10:37:40 +00:00
matt335672 35179f0fc5 Fix potential memory leak in vnc_clip.c 2025-01-09 10:17:00 +00:00