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
Tim Rühsen
6bd21adabc
* src/main.c: Modify macro IF_SSL to work with latest struct changes
2020-02-14 10:31:12 +01:00
Tim Rühsen
b92b628fd5
* configure.ac: List 'no' for --with-ssl in help output
2020-02-14 10:29:52 +01:00
Tim Rühsen
a274740598
* src/ftp.c (ftp_retrieve_dirs): Remove use of alloca
2020-02-13 20:19:26 +01:00
Tim Rühsen
94bae4dd18
* src/ftp.c (ftp_retrieve_list): Remove use of alloca
2020-02-13 20:11:45 +01:00
Tim Rühsen
d0695e269f
* src/ftp.c (ftp_loop_internal): Remove use of alloca
2020-02-13 20:02:25 +01:00
Tim Rühsen
6a3e96275b
* src/ftp.c (getftp): Remove use of alloca
2020-02-13 20:00:09 +01:00
Tim Rühsen
6d181cb8ef
* src/http.c: Include xstrndup.h unconditionally
2020-02-13 19:34:36 +01:00
Tim Rühsen
89e09e59f2
* src/ftp-basic.c (ftp_request): Remove use of alloca
2020-02-13 17:10:01 +01:00
Tim Rühsen
5505aced03
* src/html-parse.c (name_allowed): Remove use of alloca
2020-02-13 17:01:29 +01:00
Tim Rühsen
6cc9acfd61
* src/netrc.c (search_netrc): Remove use of alloca
2020-02-13 16:55:41 +01:00
Tim Rühsen
e91e96ccb5
* src/init.c (parse_line): Remove use of alloca
2020-02-13 16:50:21 +01:00
Tim Rühsen
c3c04ffeba
Remove use of alloca in setoptval
...
* src/init.c (setoptval): Remove use of alloca
* src/init.h: Add define MAX_LONGOPTION
* src/main.c (struct cmdline_option): Make 'long_name' a char array
2020-02-13 16:39:36 +01:00
Tim Rühsen
cbea3d41dd
* src/http.c (check_auth): Remove use of alloca
2020-02-13 16:27:38 +01:00
Tim Rühsen
68868bbb37
* src/http.c (print_response_line): Remove use of alloca
2020-02-13 16:11:51 +01:00
Tim Rühsen
a3f2ba708d
* src/http.c (request_set_user_header): Remove use of alloca
2020-02-13 16:11:23 +01:00
Tim Rühsen
f1ce7f5bd6
* src/http.c (metalink_from_http): Remove use of alloca
2020-02-13 16:00:19 +01:00
Tim Rühsen
704208b766
* src/http.c (basic_authentication_encode): Remove use of alloca
2020-02-13 15:54:16 +01:00
Tim Rühsen
0bc0729bcc
* src/http.c (gethttp): Remove use of alloca
2020-02-13 15:40:48 +01:00
Tim Rühsen
572f6f9b39
* src/http.c (gethttp): Remove use of alloca
2020-02-13 15:34:13 +01:00
Tim Rühsen
e22dbe5af0
* src/http.c (set_file_timestamp): Remove use of alloca
2020-02-13 15:30:50 +01:00
Tim Rühsen
f460e1d049
* src/main.c (main): Remove use of alloca
2020-02-13 15:17:27 +01:00
Tim Rühsen
c0d8cceb93
* src/url.c (append_uri_pathel): Replace alloca by fixed array / sprintf
2020-02-13 15:04:17 +01:00
Tim Rühsen
c2d03b6293
* src/url.c (append_uri_pathel): Replace alloca by fixed array / xmalloc
2020-02-13 13:32:16 +01:00
Tim Rühsen
9adde1e441
* src/utils.c (make_directory): Replace alloca by fixed array / xmalloc
2020-02-13 12:09:34 +01:00
Tim Rühsen
4dd9dee2e7
* src/utils.c (unique_name_1): Replace alloca by xmalloc
2020-02-13 11:48:06 +01:00
Tim Rühsen
233f982f9d
Add buffer size param to warc_uuid_str
...
* src/http.c (gethttp): Add buffer size param to warc_uuid_str.
* src/warc.c: Likewise
* src/warc.h: Likewise
2020-02-13 11:28:18 +01:00
Tim Rühsen
e5d0dda561
* src/http-ntlm.c (ntlm_output): Remove alloca
2020-02-12 17:05:01 +01:00
Tim Rühsen
17fad78290
* src/http-ntlm.c (mkhash): Replace alloca by fixed length array
2020-02-12 16:56:57 +01:00
Tim Rühsen
1ebd88063d
* src/http-ntlm.c (ntlm_input): Replace alloca by fixed length array
2020-02-12 16:44:59 +01:00
Tim Rühsen
c65c23cfc7
* src/gnutls.c (ssl_init): Replace alloca by fixed length arrays
2020-02-12 16:24:45 +01:00
Tim Rühsen
94b9332f50
* src/retr.c (fd_read_body): Fix signedness warnings
2020-02-12 16:14:40 +01:00
Tim Rühsen
fd75f5d986
* src/retr.c (rotate_backups): Replace alloca by fixed length arrays
2020-02-12 16:13:40 +01:00
Tim Rühsen
473db08580
* src/wget.h: Add inline to _unhex
2020-02-12 16:12:09 +01:00
Tim Rühsen
0bb97fecb7
* src/metalink.h: Include dirname.h, remove declaration of last_component
2020-02-12 16:10:58 +01:00
Tim Rühsen
5debe0a96f
* configure.ac: Add -Wno-undef -Wno-float-equal to gcc's WARN_CFLAGS
2020-02-12 16:09:57 +01:00
Tim Rühsen
8bc1d1447b
* src/convert.c (convert_links): Fix previous commit
2020-02-12 10:52:06 +01:00
Tim Rühsen
fe4ade75cf
* src/convert.c (convert_links): Add \n ( Fixes #57795 )
2020-02-12 09:57:27 +01:00
Ander Juaristi
928c54d27e
Do not overwrite restval if len is smaller
...
* src/http.c (http_loop): overwrite 'restval' only if 'len' is
greater than it. Else substract 'len' to 'restval'.
When retrying a request, only send a 'Range' header if the previous
request returned data.
2020-01-25 18:35:05 +01:00
Вячеслав Петрищев
33bc3aae51
Fix and cleanup progress bar code
...
*src/progress.c
(struct dot_progress) accumulated, rows: Type changed to wgint
(print_row_stats): Fix missing unit name 'T'
(dot_update): Add ability to reduce dot_draw runtime
(bar_update): Avoid integer overflow
2020-01-24 19:41:52 +01:00
Вячеслав Петрищев
d5dc68b1a9
* src/progress.c: Fix MINIMUM_SCREEN_WIDTH
2020-01-24 19:41:45 +01:00
Вячеслав Петрищев
68548acf0f
* src/progress.c (prepare_filename): Replace zero-width mbc (\xe2\x80\x8b, ...)
2020-01-24 19:41:36 +01:00
Вячеслав Петрищев
ec68da677f
Reenabling filename scrolling code in progress bar
...
* src/progress.c: Reenabling filename scrolling code
(bar_create): Reenabling file name scrolling.
(bar_create): Memory allocation, filename preparation.
(bar_finish): Filename memory deallocation.
(prepare_filename): New function, replaces unprintable chars.
2020-01-24 19:39:51 +01:00
Вячеслав Петрищев
f7a1e6cd7b
Fix multibyte handling in progress bar
...
* src/progress.c
(count_cols): Fix return value if invalid multibyte sequence was encountered
(bar_draw): Fix xrealoc size
2020-01-24 19:38:52 +01:00
Tim Rühsen
e2c0c2fbe5
* src/progress.c (print_row_stats): Fix two integer overflows
2020-01-10 13:56:39 +01:00
Tim Rühsen
bc7e82d3e9
* .gitlab-ci.yml: Fix path for llvm-symbolizer
2020-01-10 13:56:39 +01:00
Tim Rühsen
c1a46e9a3b
* fuzz/wget_progress_fuzzer.in/*: Add fuzzer corpora
2020-01-10 13:56:39 +01:00
Tim Rühsen
f27daa1c17
* src/retr.c (calc_rate): Remove unwanted assertions
2020-01-10 13:56:39 +01:00
Tim Rühsen
07eebd2a20
Fix buffer overflows in progress 'bar' code
...
* src/progress.c (progress_interactive_p): Sanitize input.
(progress_update): Likewise.
(bar_create): Use larger BUF_LEN.
(bar_create): Remove superfluous memset.
(bar_create): Fix filename layout.
(bar_create): Remove filename scrolling code, it caused many buffer
overflows later in bar_create.
(bar_create): Support TB/s download speed.
2020-01-10 13:56:39 +01:00