curl-curl/.github/workflows
Viktor Szakats e088e10454
cmake: replace the way clang-tidy verifies tests, fix issues found
Replace existing `mk-unity.pl` `--embed` workaround with running
`clang-tidy` manually on individual test source instead. This aligns
with how clang-tidy works and removes `mk-unity.pl` from the solution.

Also:
- mqttd: fix potentially uninitialized buffer by zero filling it.
  ```
  tests/server/mqttd.c:484:41: error: The left operand of '<<' is a garbage value
    [clang-analyzer-core.UndefinedBinaryOperatorResult,-warnings-as-errors]
    484 |       payload_len = (size_t)(buffer[10] << 8) | buffer[11];
        |                                         ^
  [...]
  tests/server/mqttd.c:606:45: error: The left operand of '<<' is a garbage value
    [clang-analyzer-core.UndefinedBinaryOperatorResult,-warnings-as-errors]
    606 |       topiclen = (size_t)(buffer[1 + bytes] << 8) | buffer[2 + bytes];
        |                                             ^
  ```
- sockfilt: fix potential out-of-bound pointer:
  ```
  tests/server/sockfilt.c:1128:33: error: The 2nd argument to 'send' is a buffer
     with size 17010 but should be a buffer with size equal to or greater than
     the value of the 3rd argument (which is 18446744073709551615)
     [clang-analyzer-unix.StdCLibraryFunctions,-warnings-as-errors]
   1128 |         ssize_t bytes_written = swrite(sockfd, buffer, buffer_len);
        |                                 ^
  ```
- clang-tidy: suppress bogus `bzero()` warnings that happens
  inside the notorious `FD_ZERO()` macros, on macOS.

Ref: https://github.com/curl/curl/pull/17680#issuecomment-2991730158

Closes #17705
2025-06-22 23:08:46 +02:00
..
appveyor-status.yml GHA: add yamlcheck 2024-08-23 18:42:55 +02:00
checkdocs.yml GHA: update rojopolis/spellcheck-github-actions digest to 35a02ba 2025-06-20 23:36:07 +02:00
checksrc.yml cmake: replace cmakelint with cmake-lint from cmakelang, fix issues 2025-06-11 07:07:49 +02:00
configure-vs-cmake.yml GHA: tidy up single-line run blocks 2025-06-06 23:24:27 +02:00
curl-for-win.yml CI: fix zizmor 1.9.0 warnings, shellcheck verify CI shell code, fix fallouts 2025-06-06 21:30:43 +02:00
distcheck.yml GHA: update msys2/setup-msys2 digest to 40677d3 2025-06-22 22:43:15 +02:00
fuzz.yml fuzzer: get the deadlock unstuck 2025-06-05 13:49:46 +02:00
hacktoberfest-accepted.yml GHA/hacktoberfest-accepted: prefer GH_TOKEN 2025-06-09 12:28:47 +02:00
http3-linux.yml tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
label.yml GHA/checksrc: check GHA rules with zizmor 2025-05-07 23:11:09 +02:00
linux-old.yml tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
linux.yml cmake: replace the way clang-tidy verifies tests, fix issues found 2025-06-22 23:08:46 +02:00
macos.yml cmake: build stubgss library for libtests to match autotools 2025-06-19 20:41:54 +02:00
non-native.yml tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
windows.yml GHA/windows: drop MSYS2 runtime downgrades 2025-06-22 23:08:46 +02:00