← Commit list

7a77884a66

Viktor Szakats
Viktor Szakats
2026-03-02
SUCCESS Duration: 322s

Subject

clang-tidy: enable `clang-analyzer-*` checks explicitly, fix fallout

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

.clang-tidy.yml+1 -0
@@ -6,6 +6,7 @@
# https://clang.llvm.org/extra/clang-tidy/checks/list.html
Checks:
+ - clang-analyzer-*
- -clang-analyzer-optin.performance.Padding
- -clang-analyzer-security.ArrayBound # due to false positives with clang-tidy v21.1.0
- -clang-analyzer-security.insecureAPI.bzero # for FD_ZERO() (seen on macOS)
lib/http.c+1 -1
@@ -3185,7 +3185,7 @@ static statusline checkprotoprefix(struct Curl_easy *data,
(((hdlen) >= (sizeof(n) - 1)) && curl_strnequal(n, hd, sizeof(n) - 1))
#define HD_VAL(hd, hdlen, n) \
- ((((hdlen) >= (sizeof(n) - 1)) && \
+ ((((hdlen) >= (sizeof(n) - 1)) && (hd) && \
curl_strnequal(n, hd, sizeof(n) - 1)) ? ((hd) + (sizeof(n) - 1)) : NULL)
/* HTTP header has field name `n` (a string constant) and contains `v`