79 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
Koichiro Iwao 5a7d9a263b Exit if no tarballs found 2025-03-28 22:25:24 +09:00
Koichiro Iwao 8213dd27ea Add GitHub Actions to generate release tarball 2025-03-28 22:21:53 +09: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 825070beb6 Add software H.264 code to Coverity scan 2025-01-31 12:13:39 +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 595bda604c Merge pull request #3291 from matt335672/update_cppcheck_ver
Update cppcheck version to 2.16.0
2024-11-14 10:22:14 +00:00
matt335672 e58796d69b Clarify size limit for uploaded videos 2024-11-04 11:26:43 +00:00
matt335672 1e3acce73e cppcheck 2.15.0 -> 2.16.0 2024-10-28 14:17:37 +00:00
matt335672 2c19a20d85 Bug report 'no videos' text updated after comments 2024-10-22 12:01:51 +01:00
matt335672 c734be35d6 Ask for no videos on the bug form 2024-10-22 11:48:55 +01: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
metalefty abfa633a35 Merge pull request #3059 from chipitsine/coverity
CI: scheduled coverity scan
2024-08-29 18:14:45 +09:00
Ilia Shipitsin a00374d1a4 CI: scheduled coverity scan 2024-08-29 10:28:08 +02: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
Koichiro Iwao d31e3f6174 Mention how to copy & paste in fenced code blocks more clearly 2024-04-19 12:08:00 +09: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
Koichiro Iwao 1b8e30ad29 Add FUNDING.yml 2023-12-22 14:28:04 +09:00
matt335672 a679b4ed2b Add markdown asking user to read the FAQ before submitting a bug 2023-11-22 16:06:11 +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 90c80ce855 Exclude RHEL from supported operating systems 2023-07-31 15:11:37 +01: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
Koichiro IWAO 6e192995cb Tip is not allowed here anymore
https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms
2023-06-13 09:50:25 +09:00
Koichiro IWAO 416615bfb5 Add field for desktop environment, backend, VM and anything else
in bug report template
2023-06-13 09:38:54 +09:00
Koichiro IWAO afb34f23a4 Reword descriptions for the link to Q&A 2023-06-10 00:26:20 +09:00
Koichiro IWAO 07797866e3 Update bug report template 2023-06-10 00:07:01 +09:00
Koichiro IWAO 650dc032ce Add bug report template 2023-06-09 23:52:59 +09:00