mirror of
https://github.com/curl/curl.git
synced 2026-08-24 14:53:31 +03:00
GHA: extend clang-tidy jobs with more build options, add Windows job
- linux: wolfssl, wolfssh (replacing libssh2), ech, kerberos/GSSAPI, ssls-export (libssh2 remains tested on macos.) - macos: brotli, zstd, c-ares, gnutls, mbedtls, gsasl, rtmp, ssls-export - windows: new job with schannel, sspi, winidn, winldap, ssls-export - unit3205: fix/silence remaining NULL dereferences. Commits fixing the issues found:cbbccb8b3a#16766554e4c14be#16777 Closes #16764
This commit is contained in:
parent
c712effda3
commit
e7944fb3da
4 changed files with 30 additions and 16 deletions
|
|
@ -722,7 +722,7 @@ UNITTEST_START
|
|||
|
||||
Curl_cipher_suite_get_str(test->id, buf, sizeof(buf), true);
|
||||
|
||||
if(strcmp(buf, expect) != 0) {
|
||||
if(expect && strcmp(buf, expect) != 0) {
|
||||
fprintf(stderr, "Curl_cipher_suite_get_str FAILED for 0x%04x, "
|
||||
"result = \"%s\", expected = \"%s\"\n",
|
||||
test->id, buf, expect);
|
||||
|
|
@ -737,13 +737,13 @@ UNITTEST_START
|
|||
|
||||
/* suites matched by EDH alias will return the DHE name */
|
||||
if(test->id >= 0x0011 && test->id < 0x0017) {
|
||||
if(memcmp(expect, "EDH-", 4) == 0)
|
||||
if(expect && memcmp(expect, "EDH-", 4) == 0)
|
||||
expect = (char *) memcpy(strcpy(alt, expect), "DHE-", 4);
|
||||
if(memcmp(expect + 4, "EDH-", 4) == 0)
|
||||
if(expect && memcmp(expect + 4, "EDH-", 4) == 0)
|
||||
expect = (char *) memcpy(strcpy(alt, expect) + 4, "DHE-", 4) - 4;
|
||||
}
|
||||
|
||||
if(strcmp(buf, expect) != 0) {
|
||||
if(expect && strcmp(buf, expect) != 0) {
|
||||
fprintf(stderr, "Curl_cipher_suite_get_str FAILED for 0x%04x, "
|
||||
"result = \"%s\", expected = \"%s\"\n",
|
||||
test->id, buf, expect);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue