Snippets for httrack 3.49.14 from Nix x86_64-linux
Sourced from https://hydra.nixos.org/log/qp4q96g4psnr79irydfbh2zbv2f1mmvs-httrack-3.49.14.drv.
-
proxy/proxytrack.c:774:23: warning: the comparison will always evaluate as 'true' for the address of 'lastmodified' will never be NULL [-Waddress] 774 | if (file->lastmodified) { | ^~~~ -
proxy/proxytrack.c:788:23: warning: the comparison will always evaluate as 'true' for the address of 'contenttype' will never be NULL [-Waddress] 788 | if (file->contenttype) { | ^~~~ -
proxy/store.c:1796:77: warning: '%s' directive output may be truncated writing up to 2047 bytes into a region of size 998 [-Wformat-truncation=] 1796 | snprintf(r->msg, sizeof(r->msg), "Bogus fixePath prefix for %s (prefixLen=%d)", | ^~ 1797 | previous_save_, (int) index->fixedPath); | ~~~~~~~~~~~~~~ -
proxy/store.c:976:75: warning: '%s' directive output may be truncated writing up to 4088 bytes into a region of size between 1017 and 1024 [-Wformat-truncation=] 976 | snprintf(index->startUrl, sizeof(index->startUrl), "%s%s", | ^~ -
proxy/store.c:1138:79: warning: '%s' directive output may be truncated writing up to 2047 bytes into a region of size 998 [-Wformat-truncation=] 1138 | snprintf(r->msg, sizeof(r->msg), "Bogus fixePath prefix for %s (prefixLen=%d)", | ^~ 1139 | previous_save_, (int) index->fixedPath); | ~~~~~~~~~~~~~~ -
proxy/store.c:1188:81: warning: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 1000 [-Wformat-truncation=] 1188 | snprintf(r->msg, sizeof(r->msg), "Read error (can't open '%s') from cache", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1189 | file_convert(catbuff, sizeof(catbuff), previous_save)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
httrack.c:479:34: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 251 [-Wformat-truncation=] 479 | "ftp: %s", back[i].info); | ^~ -
htscore.c:715:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 715 | htsbuff primarybuff = htsbuff_ptr(primary, primary_len); | ^~~~~~~ -
htscore.c:2105:15: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 2105 | char line[1100]; | ^~~~ -
htssafe.h:425:22: warning: 'strnlen' specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overread] 425 | const size_t add = strnlen(s, n); | ^~~~~~~~~~~~~ -
htscore.c:455:65: warning: '%s' directive output may be truncated writing up to 2047 bytes into a region of size 981 [-Wformat-truncation=] 455 | "<meta HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=%s\">" CRLF, | ^~ 456 | link_escaped); | ~~~~~~~~~~~~ -
htsparse.c:494:7: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 494 | const script_automate saut = {&inscript, inscript_state, | ^~~~~ -
htsparse.c:4586:13: warning: '__builtin___strncat_chk' output may be truncated copying 31 bytes from a string of length 79 [-Wstringop-truncation] 4586 | strncat(in_error_msg, back[b].r.msg, sizeof(in_error_msg) - 1); | ^ -
htsback.c:544:21: warning: the comparison will always evaluate as 'true' for the address of 'url_sav' will never be NULL [-Waddress] 544 | if (back->url_sav != NULL && back->url_sav[0] != '\0') { | ^~ -
htsback.c:891:45: warning: the comparison will always evaluate as 'true' for the address of 'url_sav' will never be NULL [-Waddress] 891 | back[p].url_sav != NULL ? back[p].url_sav : ""); | ^~ -
htsback.c:2324:43: warning: the comparison will always evaluate as 'true' for the address of 'url_sav' will never be NULL [-Waddress] 2324 | back[i].url_sav ? back[i].url_sav : "<null>"); | ^ -
htsback.c:3701:19: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 3701 | const hts_boolean server_sent_304 = | ^~~~~ -
htsback.c:545:72: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 545 | snprintf(back->tmpfile_buffer, sizeof(back->tmpfile_buffer), "%s.%s", | ^ -
htsdns_selftest.c:196:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 196 | struct addrinfo *const ai = mock_mkai(&h->addr[i]); | ^~~~~~ -
htsselftest.c:2140:22: warning: passing argument 1 of 'cache_binput' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2140 | if (cache_binput(end, end, s, sizeof(s)) != 0 || s[0] != '\0') | ^~~ -
htsselftest.c:2336:36: warning: passing argument 5 of 'treathead' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2336 | treathead(&ck2, host, "/", &r, "Set-Cookie: SID=1; path=/"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
htsselftest.c:2340:35: warning: passing argument 5 of 'treathead' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2340 | treathead(&ck2, dom, "/", &r, "Set-Cookie: SID=1; path=/"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
htsselftest.c:2830:18: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] 2830 | strm.next_in = (Bytef *) src; | ^ -
htsselftest.c:3045:16: warning: unused variable 'tlen' [-Wunused-variable] 3045 | const size_t tlen = sizeof(cc_text) - 1; | ^~~~ -
htsselftest.c:4358:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4358 | char path[HTS_URLMAXSIZE * 2]; | ^~~~ -
htsselftest.c:4365:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4365 | static const char seg[] = "/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; | ^~~~~~ -
htsselftest.c:4379:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4379 | static const char payload[] = "longpath-ok"; | ^~~~~~ -
htsselftest.c:4390:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4390 | STRUCT_STAT st; | ^~~~~~~~~~~ -
htsselftest.c:4395:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4395 | char buf[64]; | ^~~~ -
htsselftest.c:4417:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4417 | char path[HTS_URLMAXSIZE * 2]; | ^~~~ -
htsselftest.c:4423:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4423 | const size_t base = n; /* the caller's base dir; teardown stops here */ | ^~~~~ -
htsselftest.c:4445:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4445 | const size_t leafdir = n; | ^~~~~ -
htsselftest.c:4451:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4451 | static const char payload[] = "mirrorio-ok"; | ^~~~~~ -
htsselftest.c:4454:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4454 | FILE *fp = FOPEN(path, "wb"); | ^~~~ -
htsselftest.c:4467:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4467 | char path2[HTS_URLMAXSIZE * 2]; | ^~~~ -
htsselftest.c:4507:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4507 | char path[HTS_URLMAXSIZE * 2]; | ^~~~ -
htsselftest.c:4513:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4513 | const size_t base = n; | ^~~~~ -
htsselftest.c:4534:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4534 | const size_t dirlen = n; | ^~~~~ -
htsselftest.c:4539:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4539 | static const char *const leaves[] = {"/\xC3\xA9-un.bin", | ^~~~~~ -
htsselftest.c:4543:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4543 | FILE *fp = FOPEN(path, "wb"); | ^~~~ -
htsselftest.c:4553:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4553 | int found = 0; | ^~~ -
htsselftest.c:4560:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4560 | struct dirent *e; | ^~~~~~ -
htsselftest.c:4608:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4608 | char dir[HTS_URLMAXSIZE * 2]; | ^~~~ -
htsselftest.c:4614:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4614 | const size_t base = n; | ^~~~~ -
htsselftest.c:4633:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4633 | const size_t dirlen = n; | ^~~~~ -
htsselftest.c:4637:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4637 | char fpath[HTS_URLMAXSIZE * 2]; | ^~~~ -
htsselftest.c:4662:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4662 | static t_cookie ck; | ^~~~~~ -
htsselftest.c:4643:35: warning: 'cookies.txt' directive output may be truncated writing 11 bytes into a region of size between 1 and 2048 [-Wformat-truncation=] 4643 | snprintf(file, sizeof(file), "%scookies.txt", fpath); | ^~~~~~~~~~~ -
htsselftest.c:4653:35: warning: 'u@v.txt' directive output may be truncated writing 7 bytes into a region of size between 1 and 2048 [-Wformat-truncation=] 4653 | snprintf(file, sizeof(file), "%su@v.txt", fpath); | ^~~~~~~ -
htsselftest.c:4675:35: warning: 'cookies.txt' directive output may be truncated writing 11 bytes into a region of size between 1 and 2048 [-Wformat-truncation=] 4675 | snprintf(file, sizeof(file), "%scookies.txt", fpath); | ^~~~~~~~~~~ -
htsselftest.c:1205:12: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 1205 | if (!result) { | ^ -
htsftp.c:345:73: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 60 [-Wformat-truncation=] 345 | snprintf(back->r.msg, sizeof(back->r.msg), "Connection refused: %s", | ^~ -
htsftp.c:340:70: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 65 [-Wformat-truncation=] 340 | snprintf(back->r.msg, sizeof(back->r.msg), "Bad user name: %s", | ^~ -
htsftp.c:335:71: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 66 [-Wformat-truncation=] 335 | snprintf(back->r.msg, sizeof(back->r.msg), "Bad password: %s", | ^~ -
htsftp.c:413:73: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 64 [-Wformat-truncation=] 413 | snprintf(back->r.msg, sizeof(back->r.msg), "PASV incorrect: %s", | ^~ -
htsftp.c:450:74: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 63 [-Wformat-truncation=] 450 | snprintf(back->r.msg, sizeof(back->r.msg), "PASV/EPSV error: %s", | ^~ -
htsftp.c:445:75: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 64 [-Wformat-truncation=] 445 | snprintf(back->r.msg, sizeof(back->r.msg), "EPSV incorrect: %s", | ^~ -
htsftp.c:581:71: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 64 [-Wformat-truncation=] 581 | snprintf(back->r.msg, sizeof(back->r.msg), "PASV incorrect: %s", | ^~ -
htsftp.c:558:49: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 60 [-Wformat-truncation=] 558 | "RETR command error: %s", linejmp(line)); | ^~ -
htsftp.c:719:77: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 64 [-Wformat-truncation=] 719 | snprintf(back->r.msg, sizeof(back->r.msg), "RETR incorrect: %s", | ^~ -
htshelp.c:159:12: warning: the comparison will always evaluate as 'false' for the address of 'urls' will never be NULL [-Waddress] 159 | if (urls == NULL || mainpath == NULL || projname == NULL || stropt == NULL | ^~ -
htshelp.c:159:32: warning: the comparison will always evaluate as 'false' for the address of 'mainpath' will never be NULL [-Waddress] 159 | if (urls == NULL || mainpath == NULL || projname == NULL || stropt == NULL | ^~ -
htshelp.c:159:52: warning: the comparison will always evaluate as 'false' for the address of 'projname' will never be NULL [-Waddress] 159 | if (urls == NULL || mainpath == NULL || projname == NULL || stropt == NULL | ^~ -
htshelp.c:159:70: warning: the comparison will always evaluate as 'false' for the address of 'stropt' will never be NULL [-Waddress] 159 | if (urls == NULL || mainpath == NULL || projname == NULL || stropt == NULL | ^~ -
htshelp.c:160:18: warning: the comparison will always evaluate as 'false' for the address of 'stropt2' will never be NULL [-Waddress] 160 | || stropt2 == NULL || strwild == NULL || cmd == NULL || str == NULL | ^~ -
htshelp.c:160:37: warning: the comparison will always evaluate as 'false' for the address of 'strwild' will never be NULL [-Waddress] 160 | || stropt2 == NULL || strwild == NULL || cmd == NULL || str == NULL | ^~ -
htshelp.c:160:52: warning: the comparison will always evaluate as 'false' for the address of 'cmd' will never be NULL [-Waddress] 160 | || stropt2 == NULL || strwild == NULL || cmd == NULL || str == NULL | ^~ -
htshelp.c:160:67: warning: the comparison will always evaluate as 'false' for the address of 'str' will never be NULL [-Waddress] 160 | || stropt2 == NULL || strwild == NULL || cmd == NULL || str == NULL | ^~ -
htshelp.c:161:15: warning: the comparison will always evaluate as 'false' for the address of 'argv' will never be NULL [-Waddress] 161 | || argv == NULL) { | ^~ -
htshelp.c:429:46: warning: '%s' directive output may be truncated writing up to 2047 bytes into a region of size 2037 [-Wformat-truncation=] 429 | snprintf(finalurl, sizeof(finalurl), "%s" POSTTOK "file:%s", url, dest); | ^~~~ ~~~~ -
htshelp.c:312:43: warning: ' ' directive output may be truncated writing 1 byte into a region of size between 0 and 4094 [-Wformat-truncation=] 312 | snprintf(cmd, sizeof(cmd), "%s %s %s %s", urls, stropt, stropt2, strwild); | ^ -
htslib.c:707:11: warning: the comparison will always evaluate as 'true' for the address of 'msg' will never be NULL [-Waddress] 707 | if (retour->msg) { | ^~~~~~ -
htslib.c:2210:18: warning: the comparison will always evaluate as 'true' for the address of 'msg' will never be NULL [-Waddress] 2210 | if (retour && retour->msg) { | ^~ -
htslib.c:2241:18: warning: the comparison will always evaluate as 'true' for the address of 'msg' will never be NULL [-Waddress] 2241 | if (retour && retour->msg) { | ^~ -
htslib.c:2265:20: warning: the comparison will always evaluate as 'true' for the address of 'msg' will never be NULL [-Waddress] 2265 | if (retour && retour->msg) { | ^~ -
htslib.c:2322:28: warning: the comparison will always evaluate as 'true' for the address of 'msg' will never be NULL [-Waddress] 2322 | if (retour != NULL && retour->msg) { | ^~ -
htsrobots.c:166:25: warning: passing argument 1 of 'binput' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 166 | bptr += binput(body + bptr, line, sizeof(line) - 2); | ~~~~~^~~~~~ -
htstools.c:1327:11: warning: the comparison will always evaluate as 'true' for the address of 'd_name' will never be NULL [-Waddress] 1327 | if (find->dirp->d_name) | ^~~~ -
htsproxy.c:176:72: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 57 [-Wformat-truncation=] 176 | snprintf(retour->msg, sizeof(retour->msg), "proxy CONNECT refused: %s", | ^~ -
htsserver.c:910:43: warning: '%s' directive writing up to 1023 bytes into a region of size 246 [-Wformat-overflow=] 910 | sprintf(tmp, "Location: %s\r\n", newfile); | ^~ -
htsweb.c:677:23: warning: '__builtin___strncat_chk' output may be truncated copying between 0 and 3 bytes from a string of length 2047 [-Wstringop-truncation] 677 | strncat(proto, back[i].url_adr, count); | ^ -
htsweb.c:681:32: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 254 [-Wformat-truncation=] 681 | "%s: %s", proto, back[i].info); | ^~ -
callbacks-example-filenameiisbug.c:74:9: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 74 | strncpy(a, iisBogusReplace[i], strlen(iisBogusReplace[i])); | ^