← Commit list

b1f853a384

Viktor Szakats
Viktor Szakats
2026-02-26
SUCCESS Duration: 336s

Subject

unit3205: suppress two clang-tidy false positives

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 →

tests/unit/unit3205.c+2 -0
@@ -562,10 +562,12 @@ static CURLcode test_unit3205(const char *arg)
if(test->id >= 0x0011 && test->id < 0x0017) {
if(expect && memcmp(expect, "EDH-", 4) == 0) {
curlx_strcopy(alt, sizeof(alt), expect, strlen(expect));
+ /* NOLINTNEXTLINE(bugprone-not-null-terminated-result) */
expect = (const char *)memcpy(alt, "DHE-", 4);
}
if(expect && memcmp(expect + 4, "EDH-", 4) == 0) {
curlx_strcopy(alt, sizeof(alt), expect, strlen(expect));
+ /* NOLINTNEXTLINE(bugprone-not-null-terminated-result) */
expect = (const char *)memcpy(alt + 4, "DHE-", 4) - 4;
}
}