Commit Graph

60 Commits

Author SHA1 Message Date
Koichiro Iwao ad6c210c2b CI: Run FreeBSD CI via GitHub Actions
Resolves:   #3797
2026-04-28 11:47:13 +09:00
matt335672 e2148a360c CI: Upgrade to latest github action versions
This has been prompted by the following deprecation messages:

> Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4.
2026-03-18 09:53:46 +00:00
matt335672 7a2ac0c177 security: Disable smartcard code by default
The smartcard code contains a number of security vulnerabilities and
does not work at the moment.

The code has been left in the source tree, but moved behind an
'--enable-smartcard' configure flag which is clearly marked as not
for production use.
2026-03-17 15:22:11 +00:00
firewave fd4af1b346 build.yml: added sanitized build with UndefinedBehaviorSanitizer 2026-03-03 16:40:38 +01:00
matt335672 32810ecbbb cppcheck: Bump version to 2.20 2026-03-03 11:15:41 +00:00
matt335672 311a88f1fc cppcheck: Bump version to 2.19.1 2026-01-13 10:31:38 +00:00
matt335672 b8e7c6eeb2 cppcheck: Minor bump to 2.18.3 2025-10-31 20:30:24 +00:00
matt335672 5853a781b9 Update to cppcheck 2.18.0 2025-10-31 20:30:24 +00:00
matt335672 730dfdeeef Fix typo in CI build
--with-x264 should be --enable-x264
2025-04-15 10:07:07 +01:00
matt335672 82de537221 Rebase cppcheck 2.17.0 -> 2.17.1 2025-02-27 15:04:11 +00:00
matt335672 2f46ef27a2 Add support for cppcheck 2.17.0
cppcheck 2.17.0 adds checks that a NULL pointer returned from malloc() and
calloc() is not used.

We do this quite a lot.

I've addressed this by adding functions g_malloc_nofail() and
g_calloc_nofail() which either allocate memory or abort.
functions are now called in places where we are not making these
checks.

Many of these checks are in test programs or example programs.

I've modified the list16 module to handle out-of-memory conditions.
2025-02-27 15:04:11 +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 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
Koichiro Iwao 28669a8d61 CI: add OpenH264 to max features
(cherry picked from commit efd2a5fbd8b0d5024c16edc2d4a51e5371c679e8)
2024-11-29 20:59:03 +09:00
matt335672 1e3acce73e cppcheck 2.15.0 -> 2.16.0 2024-10-28 14:17:37 +00:00
matt335672 37d2c2d41b Merge pull request #3037 from matt335672/update_cppcheck
Update cppcheck and astyle versions
2024-09-04 17:20:55 +01:00
matt335672 eab3cbb1d5 Bump CI tools versions
- cppcheck 2.13.0 -> 2.15.0
- astyle 3.4.12 -> 3.4.14

Release notes
- https://github.com/danmar/cppcheck/releases/tag/2.14.0
- https://github.com/danmar/cppcheck/releases/tag/2.14.1
- https://github.com/danmar/cppcheck/releases/tag/2.14.2
- https://github.com/danmar/cppcheck/releases/tag/2.15.0
- https://astyle.sourceforge.net/notes.html

Later versions of astyle up to 3.5.1 have (currently) a problem with
align-pointer=name which confuses multiplication with a
pointer-dereference. See https://sourceforge.net/p/astyle/bugs/572/
2024-09-02 15:36:50 +01:00
Koichiro Iwao 72ede776ed x264: add CI test 2024-08-24 22:30:30 +09:00
matt335672 98d0003715 Merge pull request #3058 from seflerZ/unicode_contr
Add ibus unicode input support
2024-05-20 12:27:52 +01:00
Ilia Shipitsin bc71ac22f5 CI: add a job with address sanitizer enabled 2024-05-07 15:02:33 +02:00
matt335672 430e980c9c Add --enable-ibus to github CI 2024-05-05 10:44:19 +08:00
matt335672 7fabef86f0 Merge pull request #2943 from matt335672/update_astyle_ver
Remove hard-coded version from scripts/run_astyle.sh
2024-03-22 12:08:31 +00:00
matt335672 b2c0c506e8 Merge pull request #2745 from matt335672/wtmp
Add utmp/wtmp support
2024-02-21 14:22:16 +00:00
matt335672 4ba026be38 Migrate github actions to Node 20
Github actions are transitioning to Node 20 ans Node 16 is EOL.

https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20
2024-02-21 09:36:53 +00:00
matt335672 3b6c9bcba3 Add --enable-utmp to configure.ac 2024-02-21 09:24:48 +00:00
matt335672 b9fd19e6b5 Remove hard-coded version from scripts/run_astyle.sh
This script now works the same way as cppcheck. The version to
be used is specified once in the github CI action
2024-02-12 10:31:49 +00:00
Koichiro Iwao b39c12f351 Update astyle to 3.4.12
as astyle 3.1 is no longer available in the latest FreeBSD.

Also, astyle upstream repository has been moved to GitLab. Switched git
to obtain astyle source.

https://gitlab.com/saalen/astyle
2024-02-08 15:34:17 +09:00
matt335672 c38308a2d9 Bump cppchck to v2.13.0 2023-12-23 13:37:06 +00:00
firewave 8c214280d3 bumped Cppcheck to 2.12.1
- build Cppcheck with matchcompiler for improved performance
- build Cppcheck with Boost for improved ValueFlow performance
2023-10-17 15:14:36 +02:00
firewave f687174af1 provide more includes to Cppcheck
- added (temporary) suppression of Cppcheck `shiftTooManyBits` false positives in `libxrdp/xrdp_mppc_enc.c`
- added (temporary) suppression of Cppcheck `uninitMemberVar` true positives in `ulalaca/ulalaca.cpp` until fixes land downstream
- fix Cppcheck `nullPointerRedundantCheck` in `sesman/chansrv/clipboard.c`
- fix Cppcheck `syntaxError` in `fontutils/mkfv1.c` because it doesn't see the `freetype/fterrors.h` header / removed astyle workaround
2023-10-17 15:14:36 +02:00
firewave c37ce6fa47 Cppcheck 2.8 removed the dependency on z3 2023-09-04 10:01:09 +02:00
matt335672 d77b0b3b9d Bump cppcheck to v2.11
This fixes the following errors:-

sesman/tools/authtest.c:64:14: error: syntax error [syntaxError]
    g_printf("xrdp auth module tester v" PACKAGE_VERSION "\n");
             ^
sesman/tools/sesrun.c:165:14: error: syntax error [syntaxError]
    g_printf("xrdp session starter v" PACKAGE_VERSION "\n");
             ^
vrplayer/decoder.h:35:12: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro]
    public slots:
           ^
vrplayer/playaudio.h:45:12: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro]
    public slots:
           ^
vrplayer/dlgabout.h:22:13: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro]
    private slots:
            ^
vrplayer/playvideo.h:49:12: error: There is an unknown macro here somewhere. Configuration is required. If slots is a macro then please configure it. [unknownMacro]
    public slots:
           ^
Additionally, cppcheck now makes use of all available CPUs
2023-06-23 15:12:51 +01:00
matt335672 eb3d159612 Fix CI build break 2023-02-27 11:30:07 +00:00
Nexarian d3be110ffc Add unit test parameter for more coverage. 2023-02-11 00:28:30 -05:00
Nexarian ee4b57b4c9 Improvements for unit testing
- Set max features to enable tests
- Add names to each step
- Enable test-suite.log artifact upload for distcheck.
2023-02-04 14:56:51 -05:00
matt335672 0cbdeecf14 Bump cppcheck version to 2.10 2023-01-29 15:59:28 +00:00
matt335672 5cbf0cb5ac Update legacy OS from 18.04 to 20.04
Since Ubuntu 20.04 supports less i386 functionality than 18.04,
it has been necessary to use a smaller set of compile options,
resulting in less compile coverage.
2022-10-19 17:48:42 +01:00
matt335672 23a3c85bc1 Update github ::set-output usage 2022-10-19 17:48:42 +01:00
matt335672 288dbf4e1f Update github actions version for node.js 16 2022-10-19 11:11:12 +01:00
matt335672 02513dbd4b Add freetype2 to CI
The freetype2 library can now be used to create fv1 fonts. This
library is added to the 'max features' CI builds to pick up any
regressions.
2022-09-06 10:32:40 +01:00
a1346054 7fe18cc1c0 fix typos 2022-09-03 02:01:48 +00:00
matt335672 cb75014221 Bumped cppcheck version to 2.9 2022-08-30 10:39:49 +01:00
matt335672 be2b778bae github actions: use canonical way to get ImageOS for astyle 2022-05-27 11:55:22 +01:00
matt335672 8236cda6a6 github actions: use canonical way to get ImageOS 2022-05-25 11:17:30 +01:00
matt335672 d8669a2998 Bump cppcheck version to 2.8 2022-05-23 12:59:01 +01:00
matt335672 978be50842 Allow xrdp to be built with --disable-static
This PR allows xrdp to be built with --disable-static, which prevents
'make install' installing additional unwanted .a files.
2022-05-10 12:12:14 +01:00
matt335672 baf62457a3 Move to cppcheck 2.7 and bump default threads to 2 2022-02-07 09:31:34 +00:00
matt335672 cda6c60748 Bump CI version of cppcheck to 2.6 2021-10-04 11:52:22 +01:00
matt335672 aa43a005e3 Add --with-imlib2 to i386 CI 2021-09-01 10:09:30 +01:00
matt335672 2d123d519d Add imlib2 to CI 2021-09-01 10:09:30 +01:00