Tim Rühsen
8010507d73
* src/http.c (http_loop): Avoid unneeded strdup
2020-02-27 11:35:50 +01:00
Вячеслав Петрищев
f747eea059
* src/http.c (gethttp): Fix memleak
2020-02-27 11:12:27 +01:00
Tim Rühsen
46a6e2957e
* src/http.c: Do not reveal OS type to server via User-Agent: header
...
Following the "privacy by design" principle, which is now European law by
virtue of the GDPR since 2018, the client should not transmit the operating
system.
Fixes #57884
Reported-by: Bruno Haible
2020-02-23 18:51:10 +01:00
Tim Rühsen
04b7369490
* tests/unit-tests.c: Fix 'multiple definition of...' with gcc 10
2020-02-22 13:41:04 +01:00
Tim Rühsen
8e130c32ba
Split unique_name into two functions with just one arg
...
* src/http.c (check_file_output): Call unique_name_passthrough.
* src/metalink.c (badhash_suffix): Call unique_name.
* src/url.c (url_file_name): Call unique_name_passthrough.
* src/utils.c: Split unique_name, amend description.
* src/utils.h: Amend unique_name, add unique_name_passthrough.
2020-02-22 12:59:18 +01:00
Tim Rühsen
88d841c651
* .gitlab-ci.yml: Set tag 'linux' explicitly for each runner
2020-02-22 08:53:56 +01:00
Tim Rühsen
d08bdbc878
* src/http.c (print_response_line): Fixed comparison
...
Introduced in 68868bbb37
(13.2.2020).
Reported-by: Gisle Vanem
2020-02-22 08:47:20 +01:00
Tim Rühsen
aba6e67eb7
Add valgrind suppressions
...
* testenv/valgrind-suppression-ssl: Add gnutls suppressions
* tests/valgrind-suppressions: Likewise
* tests/valgrind-suppressions-ssl: Likewise
2020-02-21 22:43:01 +01:00
Tim Rühsen
e1c4a2705f
Add --gen-suppressions=all to valgrind options
...
* testenv/test/base_test.py: Add --gen-suppressions=all to valgrind options
* tests/Test-proxied-https-auth.px: Likewise
* tests/WgetTests.pm: Likewise
2020-02-21 22:42:22 +01:00
Tim Rühsen
f4dfddfaf3
* cfg.mk: Exclude sc_prohibit_gnu_make_extensions
2020-02-21 21:56:55 +01:00
Tim Rühsen
9934e228ac
* src/retr.c (fd_read_body): Check timer before accessing (Coverity #600494 )
2020-02-21 17:46:41 +01:00
Tim Rühsen
c65bddc086
* src/warc.c (warc_write_start_record): Check return values of fseek, fflush (Coverity #1419650 )
2020-02-21 17:38:41 +01:00
Tim Rühsen
c5d0e58d0d
* src/ftp-ls.c (eat_carets): Fix caret decoding issue (Coverity #1419653 )
2020-02-21 14:55:03 +01:00
Tim Rühsen
365c00a4a2
* src/warc.c (warc_write_block_from_file): Check for write error (Coverity #1419654 )
2020-02-21 14:41:40 +01:00
Tim Rühsen
4e519f5a80
* src/warc.c (warc_write_end_record): Check return value of fseeko (Coverity #1419657 )
2020-02-21 14:37:40 +01:00
Tim Rühsen
08aa947c9d
Add valgrind suppressions for HTTPS tests (GnuTLS false positive)
...
* testenv/valgrind-suppression-ssl: Add new rule
* tests/valgrind-suppressions: Likewise
* tests/valgrind-suppressions-ssl: Likewise
2020-02-21 13:20:45 +01:00
Tim Rühsen
43820b67bf
* src/init.c (setoptval): Add missing comma (fix compilation)
2020-02-20 17:04:02 +01:00
Tim Rühsen
b8413cdd3d
* .gitlab-ci.yml: Add spell-checking to VPATH/Debian
2020-02-20 16:24:43 +01:00
Tim Rühsen
b53c52c4c1
Fix typos found by codespell
...
*/*: Fix typos
Thanks to https://fossies.org/features.html#codespell
Reported-by: Jens Schleusener
2020-02-20 16:21:33 +01:00
Tim Rühsen
ce745c6a08
* contrib/spell-checker: Add new file
2020-02-20 16:20:52 +01:00
Tim Rühsen
9df2e0d746
* src/init.c (setoptval): Silence Coverity (Coverity #1419648 )
2020-02-20 13:46:36 +01:00
Tim Rühsen
ada3396c72
* src/main.c (init_switches): Remove unneeded code (Coverity #1419658 )
2020-02-20 13:20:21 +01:00
Tim Rühsen
9b1b9961ef
* src/ftp-ls.c (ftp_parse_vms_ls): Fix use of uninitialized stack mem (Coverity #609373 )
2020-02-20 13:17:31 +01:00
Tim Rühsen
79438d4d87
* src/retr.c (retrieve_url): Fix memory leak (Coverity #1316408 )
2020-02-19 20:36:36 +01:00
Tim Rühsen
1c16819558
* src/http.c (set_file_timestamp): Fix stack memory leak (Coverity #1419655 )
2020-02-19 19:13:48 +01:00
Tim Rühsen
d3f5311087
* src/main.c (main): Initialize variable (Coverity #1419660 )
2020-02-19 18:54:06 +01:00
Tim Rühsen
4d1f6f5c09
* .gitlab-ci.yml: Fix linebreak
2020-02-19 18:44:14 +01:00
Tim Rühsen
1dfd1aa1cf
* src/http.c (metalink_from_http): Fix memleak (Coverity #1419661 , #1419656 )
2020-02-19 17:07:52 +01:00
Tim Rühsen
2b48b50aa5
* .gitlab-ci.yml: Add 'coverity' runner
2020-02-19 17:06:06 +01:00
Tim Rühsen
e6c76e84aa
* contrib/mk_authors: Create list of authors and translators since last version
2020-02-19 15:36:24 +01:00
Tim Rühsen
21bb9d54cb
* src/progress.c (eta_to_human_short): Silence -Wformat-overflow
2020-02-19 14:44:21 +01:00
Tim Rühsen
8eda2da138
* .gitlab-ci.yml: Don't copy gnulib manually
2020-02-14 23:33:45 +01:00
Tim Rühsen
fa92fc336b
* NEWS: Update
2020-02-14 16:31:59 +01:00
Tim Rühsen
e6b76459db
Remove alloca includes and macros
...
* bootstrap.conf: Remove gnulib module 'alloca'.
* src/sysdep.h: Remove include of alloca.h.
* src/wget.h: Likewise,
remove macros BOUNDED_TO_ALLOCA and STRDUP_ALLOCA.
2020-02-14 16:13:50 +01:00
Tim Rühsen
7aac99d6e5
* src/utils.h: Remove alloca_array
2020-02-14 16:09:36 +01:00
Tim Rühsen
28beee5e75
* src/convert.c (convert_links_in_hashtable): Remove use of alloca
2020-02-14 16:08:09 +01:00
Tim Rühsen
ca56ca94ee
* src/convert.c (local_quote_string): Remove use of alloca
2020-02-14 16:00:05 +01:00
Tim Rühsen
951bcac6df
* src/convert.c (replace_attr_refresh_hack): Remove use of alloca
2020-02-14 15:38:53 +01:00
Tim Rühsen
43ad3af58d
* gnulib: Update
2020-02-14 15:31:10 +01:00
Tim Rühsen
a534d93a5f
* bootstrap.conf: Use fnmatch-gnu instead of fnmatch
2020-02-14 15:30:14 +01:00
Tim Rühsen
6d1fcd1c48
* src/convert.c (write_backup_file): Remove use of alloca
2020-02-14 13:15:21 +01:00
Tim Rühsen
b62956872c
* src/utils.c (fnmatch_nocase): Remove FNM_CASEFOLD emulation, gnulib takes care of it
2020-02-14 12:59:25 +01:00
Tim Rühsen
589b3743fa
* src/cookies.c (cookie_header): Remove use of alloca
2020-02-14 12:50:32 +01:00
Tim Rühsen
d61d82c43c
* src/cookies.c (cookie_header): Remove use of alloca
2020-02-14 12:43:12 +01:00
Tim Rühsen
f071030659
* src/cookies.c (cookie_handle_set_cookie): Remove use of alloca
2020-02-14 12:32:22 +01:00
Tim Rühsen
36ccb62e92
* src/cookies.c (parse_set_cookie): Explicitly convert from double to time_t
2020-02-14 12:04:41 +01:00
Tim Rühsen
e5cf56d7fa
* src/cookies.c (parse_set_cookie): Remove use of alloca
2020-02-14 12:03:50 +01:00
Tim Rühsen
92c0d39894
* src/warc.c (warc_uuid_str): Add second param to windows_uuid_str
2020-02-14 11:53:10 +01:00
Tim Rühsen
78a848c69a
* src/cookies.c (parse_set_cookie): Remove use of alloca
2020-02-14 11:48:19 +01:00
Tim Rühsen
8610b0b355
* src/main.c (main): Code clean, reduce allocations
2020-02-14 11:14:02 +01:00