Commit Graph

4462 Commits

Author SHA1 Message Date
8940b6109a windows fix 2024-11-10 15:32:54 +01:00
6d6977d0b8 nonblocking split 2024-11-10 15:12:47 +01:00
1f7e094899 src/utils.h: Include wget.h before stdlib.h
* src/utils.h: wget.h includes config.h which should be included before
    any other header files. So swap the order of includes
2024-11-10 14:57:15 +01:00
6ff5f2d2b6 * README: Replace FSF address with URL 2024-11-10 12:18:21 +01:00
04053a7c1e * configure.ac: Remove searching for makeinfo (breaks doc/ build) 2024-11-10 11:51:42 +01:00
44472c59b8 * bootstrap: Update from gnulib 2024-11-10 11:30:53 +01:00
27c8c96350 * gnulib: Update 2024-11-10 11:30:34 +01:00
00048762c3 * src/http.c (http_loop): Remove unused code 2024-11-10 11:23:43 +01:00
9bf173e6ae * configure.ac: Drop -Wc99-c11-compat and -Wuseless-cast for manywarnings 2024-11-10 11:23:21 +01:00
6aa6d01742 * Makefile.am: Fix check-coverage from tarball 2024-11-01 19:45:05 +01:00
e70dd2b054 * Makefile.am: Fix creating coverage reports 2024-11-01 18:05:20 +01:00
219c34fea9 * .gitlab-ci.yml: Remove tags to fix CI 2024-11-01 10:48:41 +01:00
2800eb2bed * src/utils.c (compile_posix_regex): Remove redundant casts 2024-10-31 09:52:24 +01:00
054d79cf65 * src/utils.h (strlcpy): Use restrict keywords 2024-10-27 22:17:04 +01:00
80cd939501 * src/hash.c: Include config.h in STANDALONE mode 2024-10-27 18:58:40 +01:00
8775506f63 * src/http.c (http_loop): Fix memory leak 2024-06-09 20:00:45 +02:00
567e67afd2 * src/retr.c (retrieve_from_url_list): Fix memory leak 2024-06-09 19:35:30 +02:00
afa979b43f * src/retr.c (retrieve_from_file): Fix memleak 2024-06-02 14:26:01 +02:00
cd643458b4 * src/warc.c (warc_close): Fix memleak 2024-06-02 14:22:17 +02:00
b88ad88253 * src/warc.c (warc_start_new_file): Simplify code 2024-06-02 14:22:12 +02:00
62fffab577 * src/httpc.c (http_loop): Fix memleak 2024-06-02 14:22:03 +02:00
ecb59f2e02 * src/init.c (cleanup): Do not close stdout on exit 2024-06-02 14:21:58 +02:00
42c83d8972 * src/iri.c (do_conversion): Initialize memory from realloc() 2024-06-02 14:20:06 +02:00
bb0aa299e9 * src/warc.c (warc_write_end_record): Check warc_write_ok (fix use-after-free)" 2024-06-02 14:20:00 +02:00
0490e301d4 * src/wget.h (DO_REALLOC): Initialize realloc'ed memory to help valgrind 2024-06-02 14:19:53 +02:00
a582633c97 * src/utils.c (run_with_timeout): Set SIGALRM handler before setjmp() (reported by valgrind) 2024-06-02 14:19:50 +02:00
5fe01167d1 * fuzz/wget_options_fuzzer.c: Fix indentation 2024-06-02 14:19:42 +02:00
ed0c7c7e0e Properly re-implement userinfo parsing (rfc2396)
* src/url.c (url_skip_credentials): Properly re-implement userinfo parsing (rfc2396)

The reason why the implementation is based on RFC 2396, an outdated standard,
is that the whole file is based on that RFC, and mixing standard here might be
dangerous.
2024-06-02 12:40:21 +02:00
bb59ef7fd4 * fuzz/Makefile.am (oss-fuzz): Add -lgmp 2024-05-24 19:20:32 +02:00
196ce0abd6 Support continious reading from stdin pipes
Rather than reading from stdin only once, leave the pipe open until the
other end closes it and keep reading from the file after each set of
URLs is read

* src/html-url.h(get_urls_file): Update prototype to add additional
  param
* src/html-url.c(get_urls_file): Pass through read_again to
  wget_read_from_file.
* src/retr.c(retrieve_from_file): Split the function into two. Introduce
  `retrieve_from_url_list` that actually performs the retrieval.
  Also, if `url_list` returns that the fd has been left open, then
  continue reading from it until the fd is closed.
  (retrieve_from_url_list): New function that does the retrieval from
  a list of URLs that was read from a file.
* src/utils.c(wget_read_from_file): Rename old function `wget_read_file`
  to this.
  Accept an additional output parameter that states whether the fd was
  left open and if we should continue reading from it after the current
  set of URLs have been processed
  (wget_read_file): Write it as a new wrapper function around
  `wget_read_from_file` to maintain API comptability across other users
2024-05-12 17:57:30 +02:00
ca10f20aaf * gnulib: Update 2024-04-27 19:25:00 +02:00
f6291c33cd Update gnulib link libraries
* fuzz/Makefile.am: Update gnulib link libraries.
* src/Makefile.am: Likewise.
* tests/Makefile.am: Likewise.
2024-04-20 16:19:51 +00:00
5f0aa59239 Fix libproxy build with --disable-debug
The definition of debug_logprintf in src/log.c is guarded by ENABLE_DEBUG
(although its prototype is unconditionally available in src/log.h).

The uses of debug_logprintf in src/retr.c aren't guarded by ENABLE_DEBUG.

Use the DEBUGP macro which is designed for this purpose.

* src/retr.c (getproxy): Use DEBUGP macro.

Fixes: https://gitlab.com/gnuwget/wget/-/issues/19
Copyright-paperwork-exempt: Yes
2024-04-16 02:23:56 +00:00
1c934e67de Add a new testcase for pathconf truncation
* testenv/Test-recursive-pathmax.py: Add a new testcase. This test tries
  to check that Wget allows downloading long filenames as far as allowed
  by the OS and filesystem.
2024-03-16 19:14:57 +01:00
903373a83c * contrib/make-release: Automatically build and update online documentation 2024-03-11 23:46:36 +01:00
480e9d6efd * contrib/make-release: More minor fixes 2024-03-10 15:21:08 +01:00
637e58ad50 maint: post-release administrivia
* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.
2024-03-10 15:10:58 +01:00
dad28423c6 version 1.24.5
* NEWS: Record release date.
v1.24.5
2024-03-10 15:08:04 +01:00
fdb4ae8ffe * contrib/make-release: Some more release management 2024-03-10 15:05:53 +01:00
999700ac5f * NEWS: Update the noteworthy NEWS 2024-03-10 11:25:53 +01:00
c9cc2e1d24 * bootstrap.conf: Organize alphabetically 2024-03-10 11:10:06 +01:00
a3158065a3 * gnulib: Update to the latest version 2024-03-10 11:03:33 +01:00
e54a1f910e Remove obsolete Travis CI files
* .travis.yml: Remove.
* contrib/travis-ci: Remove.
2024-03-03 17:46:42 +01:00
b32cc7afe0 Fix HSTS matching
* src/hsts.c (hsts_find_entry): Check for includeSubdomains,
  (test_hsts_new_entry): Fix test,
  (test_hsts_url_rewrite_superdomain): Improve test.

Reported-by: Hanno Böck <hanno@hboeck.de
2024-02-24 19:12:59 +01:00
3aa53a6220 Delete some redundant tests
* tests/Makefile.am: Remove some tests that are redundant with the
  Python testenv
* tests/Test-auth-basic.px: Delete file
* tests/Test-auth-no-challenge.px: Same
* tests/Test-auth-no-challenge-url.px: Same
* tests/Test-auth-retcode.px: Same
* tests/Test-auth-with-content-disposition.px: Same
* tests/Test-k.px: Same
2024-02-19 19:23:25 +05:30
0e0cdc2409 * Makefile.am: Ignore some lcov errors, allowing the tests to run through 2024-02-19 19:21:03 +05:30
84a75ace88 * README: Add a link to the COPYING file to meet the GNU Coding Standards 2024-02-19 18:43:12 +05:30
35204ab5d7 * bootstrap: Update script from gnulib 2024-02-19 18:37:51 +05:30
e377b80863 * gnulib: Update gnulib 2024-02-19 18:35:26 +05:30
f973f4857a * Update copyright year to 2024 2024-02-19 18:33:43 +05:30