Commit Graph

69 Commits

Author SHA1 Message Date
Arvid Norberg 2bd49c9039 Merge branch 'RC_2_0' into RC_2_1 2026-06-07 12:43:35 +02:00
Arvid Norberg 188c5226f7 stricter basic auth handling for web seed 2026-06-06 17:50:41 +02:00
Arvid Norberg c070b9fc5d Merge branch 'RC_2_0' into RC_2_1 2026-05-03 23:13:40 +02:00
Arvid Norberg 79ef5380d3 stricter checking of tracker URLs 2026-05-02 13:55:21 +02:00
arvidn 8e53eba82f Merge branch 'RC_2_0' 2023-08-26 11:15:27 +02:00
luzpaz 63373cf012 Fixes various typos
Found via `codespell -q 3 -S "*.pem,*.torrent,./docs/hunspell,./src/puff.cpp" -L bu,fo,folx,ihs,ot,readd,requestor,te`
2023-08-24 07:52:41 +02:00
arvidn 550d3c7d9f update copyright headers 2022-06-22 21:42:55 +02:00
arvidn 2db8b54c08 update copyright headers in source files 2021-06-13 21:04:55 +02:00
arvidn 83e6ac718e merged RC_2_0 into master 2021-05-24 01:53:14 +02:00
arvidn 5715583c4a merged RC_1_2 into RC_2_0 2021-05-23 12:00:32 +02:00
arvidn 73d11f140a fix bug in chunked encoding 2021-05-21 21:34:15 +02:00
arvidn 0d3f80bedd update copyright and license headers (of a few new files merged from RC_2_0) 2021-03-29 19:35:45 +02:00
Alden Torres c71697106e moved copy_ptr.hpp, file.hpp and parse_url.hpp to aux (#5841) 2021-01-09 22:01:31 +01:00
Arvid Norberg b4b8060f9d merged RC_2_0 into master 2020-12-24 17:32:20 +01:00
arvidn f19669f41e merge RC_1_2 into RC_2_0 2020-12-17 02:44:34 +01:00
arvidn b2509280b1 mitigate a class of tracker SSRF where tracker URLs come preloaded with bittorrent tracker query string arguments, like info_hash, event, etc. 2020-12-13 03:36:40 +01:00
Arvid Norberg 109eaea545 merged RC_2_0 into master 2020-12-06 17:39:59 +01:00
arvidn f726d10891 merged RC_1_2 into RC_2_0 2020-12-03 02:55:59 +01:00
arvidn 64615814e0 add is_idna() function to detect IDNA encoded hostname labels 2020-12-01 02:35:26 +01:00
Arvid Norberg 31622459fd update copyright 2020-11-14 20:25:15 +01:00
Alden Torres 93ff528645 using structured binding 2020-10-04 03:01:39 -07:00
Alden Torres a10911cdd5 replaced boost::optional with std::optional 2020-09-27 15:34:11 -07:00
arvidn 041d7cbc58 merged RC_2_0 into master 2020-09-19 00:47:01 +02:00
arvidn e2a4bdc7fb merged RC_1_2 into RC_2_0 2020-09-18 11:36:00 +02:00
arvidn a9ea3c85b8 make sure there's always at least a / path component in HTTP requests 2020-09-13 06:33:44 -07:00
Arvid Norberg bc38d29280 fix issue in URL parser, causing issues with certain tracker URLs 2020-09-12 09:00:28 -07:00
arvidn 19e8c2f3ea remove full BSD license from all source files. reference LICENSE file in the root instead 2020-09-02 00:56:54 -07:00
Alden Torres 5a9dbb446b moved hash_picker.hpp and http_parser.hpp to aux 2020-07-20 03:27:00 -07:00
arvidn 16d2945d4f merged RC_1_2 into master 2019-12-17 19:48:29 +01:00
arvidn 0063e43650 silence buggy nodiscard diagnostic on MSVC 2019-12-17 02:16:59 +01:00
arvidn f0cd5dc086 merge RC_1_2 into master 2019-09-26 00:03:29 +02:00
arvidn 9c970550e3 fix clang warning on empty statements by fixing the test macros 2019-09-24 01:28:43 +02:00
arvidn d3f7a363c2 update copyright year 2019-08-29 00:13:04 +02:00
Arvid Norberg e539846266 fix integer overflow in chunked http parser 2019-07-30 11:16:05 -07:00
arvidn 6be8b395da some cleanup turning memcmp() and memcpy() into span comparisons and std::copy(). some more use of random_bytes() instead of loops. 2018-11-05 18:52:45 +01:00
arvidn f0227451a6 merged RC_1_1 into master 2018-04-13 01:47:41 +02:00
arvidn c5a5e084dd :strtoll() returns LLONG_MAX if the input overflows. Handle this case properly in the http parser 2018-04-08 18:34:25 +02:00
arvidn 9df4d4b7f8 replace typedef with using. replace NULL with nullptr. cleanup page_aligned_allocator 2018-03-23 11:19:46 +01:00
Alden Torres 070d1cd61f fixing warnings in tests code, part5 (#2736) 2018-01-28 00:56:21 +01:00
arvidn 43d7f980d0 make the chunk header parser properly fail at end of buffer, and not require zero terminated strings 2017-12-23 17:06:50 +01:00
arvidn f262bbdcea use seconds32 as the retry-time for web seeds 2017-11-19 16:20:36 +01:00
Pavel Pimenov 8ac6bbe553 add http_parser::header_int (#2472) 2017-11-09 23:43:26 +01:00
arvidn 9d276ada8a fix issue with the name in single file torrents being sanitized away 2017-10-01 01:12:39 +02:00
arvidn 12e92aeeb4 make the chunk header parser a bit more strict and accurate (and not rely on there being a 0 termiator character) 2017-09-30 11:59:00 -07:00
arvidn 9f177ad413 analyze with sonarqube 2017-09-08 22:19:48 +02:00
arvidn 95c8c3018a use span in gzip, http_parser and http_connection 2017-09-04 22:33:38 +02:00
arvidn d138f02424 introduce lt namespace alias 2017-04-23 23:43:58 -04:00
arvidn 1dd0e9b280 use string_view instead of strcmp 2017-03-18 15:54:38 -04:00
arvidn a087a283de make tests print to stdout instead of stderr 2017-01-02 11:28:41 -05:00
arvidn 20aeed09e1 clean up tests 2016-11-12 17:39:34 -05:00