Commit Graph

3669 Commits (376a07df00dbb62cad2a8d1caebceb705ca2287d)

Author SHA1 Message Date
Tatsuhiro Tsujikawa 52469aba85 Fix overflow 2023-09-16 19:17:40 +09:00
Tatsuhiro Tsujikawa e5d9ad2f0b Fix test errors with ubsan 2023-09-16 17:22:33 +09:00
Tatsuhiro Tsujikawa 8956c58d12 Remove deprecated std::unary_function and std::binary_function 2023-09-16 16:24:23 +09:00
Tatsuhiro Tsujikawa fa2eb95a00 Prefer random number generator from crypto libraries 2023-09-16 11:37:01 +09:00
Tatsuhiro Tsujikawa 7e7f549ef1
Merge pull request #1893 from kelson42/increase-bytearraydiskwriter-max
Increase ByteArrayDiskWriter maximum size
2023-09-15 19:08:29 +09:00
Tatsuhiro Tsujikawa f4cbc7bb31
Merge pull request #1969 from himikof/patch-1
Fix Metalink4 parsing with foreign namespaces
2022-08-25 16:23:39 +09:00
Nikita Ofitserov 42038422f6
Fix undefined behavior/crash in GZipEncoder
When the output buffer is full, outbuf[produced] references past the buffer end, leading to UB and a possible assertion failure.
Fixes #1968, #1964
2022-08-24 17:28:04 +03:00
Nikita Ofitserov 15a96209cd
Fix Metalink4 parsing with foreign namespaces
Rename local checkNsUri helper function to make boolean conditions easily readable,
as the issue was not apparent with the old helper function name.
2022-08-23 20:27:39 +03:00
Hernan Martinez 182f4f9ca2 Add missing <array> 2022-06-23 00:00:25 -06:00
Tatsuhiro Tsujikawa ba3396f7bb Better entropy for getRandomBytes 2022-04-09 17:23:00 +09:00
Tatsuhiro Tsujikawa ba36a38a6c Allow empty dist name in bencode which is needed for hybrid torrent 2022-04-08 22:54:11 +09:00
carsonzhu 839dd2caf7 add no-want-digest-header option 2022-04-03 18:58:56 +09:00
Tatsuhiro Tsujikawa aaf090d1a6
Merge pull request #1877 from h3xx/fix-doc-typo
Fix typo in documentation, --help text
2022-04-03 18:32:21 +09:00
Tatsuhiro Tsujikawa fee8e41d85
Merge pull request #1824 from richardnias/fix-accept-encoding-docs
Fix header in --http-accept-gzip documentation
2022-04-03 18:31:38 +09:00
Emmanuel Engelhart 56d1e1146b
Increase ByteArrayDiskWriter maximum size 2022-03-05 19:15:48 +01:00
Dan Church de99fc170e
Fix typo 2022-01-19 09:57:01 -06:00
Tatsuhiro Tsujikawa c546fa492c clang-format-12 2021-10-30 19:04:29 +09:00
Tatsuhiro Tsujikawa 177939d6ac Cosmetic change 2021-10-30 19:03:53 +09:00
Tatsuhiro Tsujikawa c197373db7 Simplify 2021-10-30 18:25:29 +09:00
Tatsuhiro Tsujikawa 869aae8264 Build with OpenSSL 3.0.0 2021-10-29 21:05:57 +09:00
Richard Nias 6c96589244 Fix header in --http-accept-gzip documentation 2021-09-17 10:17:39 +02:00
Tatsuhiro Tsujikawa e088857a2c Replace the deprecated std::ptr_fun with std::function 2021-08-12 22:53:30 +09:00
Natanael Copa 2d0171e956 Fix segfault when time_t is 64bit on 32bit arch (#1666)
On some platforms, like with musl libc, time_t may be 64 bit even on
32bit platforms. Fix segfault by convert time_t to 64 bit and use 64bit
format modifier instead of assume time_t is %ld
2020-12-28 10:11:57 +09:00
Ali MJ Al-Nasrawy 01969fc530 flush OS write buffers before saving control file
This ensures that pieces are physically written to disk before
marking them as finished in the control file.

This should prevent data loss and corruption when resuming downloads
after a system crash.

Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
2020-06-17 11:07:03 +03:00
Ali MJ Al-Nasrawy 870e2a6014 flush internal buffers before auto-saving control file
Otherwise, some pieces may be marked as finished in the control file
though they have not yet been written to the storage file.

This should prevent data loss and corruption when resuming downloads
after an app crash.

Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
2020-06-17 11:05:30 +03:00
Tatsuhiro Tsujikawa 6ebdddb9f1 Reset sessionDownloadLength and sessionUploadLength on download start
This commit resets sessionDownloadLength and sessionUploadLength when
a download restarted (including unpause RPC method).

Fixes #1486
2019-10-12 10:30:18 +09:00
Nils Maier 53b3169a22 AppleTLS: even more correctly define kTLSProtocol13
Yes, again
2019-10-06 13:36:08 +02:00
Nils Maier a184ceb9e2 AppleTLS: correctly define kTLSProtocol13 2019-10-06 13:22:25 +02:00
Nils Maier 40e01dbb4c AppleTLS: update cipher suites 2019-10-06 12:13:59 +02:00
Nils Maier a6671aec37 AppleTLS: TLSv3 2019-10-06 12:13:59 +02:00
Tatsuhiro Tsujikawa 4a645d9dcf Bump copyright year in --version 2019-09-21 17:47:05 +09:00
Tatsuhiro Tsujikawa 80df934955 Fix compiler warning 2019-09-15 11:26:48 +09:00
Tatsuhiro Tsujikawa 9f5758570a Update android build dependencies
Update android build dependencies.  Use android NDK r20 and build
aarch64 binary.
2019-09-15 11:15:29 +09:00
Tatsuhiro Tsujikawa 7f6578aa7d clang-format-8 2019-06-22 17:18:01 +09:00
Tatsuhiro Tsujikawa 0abde36583
Merge pull request #1213 from Chaneybenjamini/libressl-pr
Fix build with Libressl version 2.7.x
2019-05-19 14:58:31 +09:00
Tatsuhiro Tsujikawa 52da4e40ea Drop SSLv3.0 and TLSv1.0 and add TLSv1.3
TLSv1.3 support is added for GNUTLS and OpenSSL.
2019-04-07 16:18:32 +09:00
Tatsuhiro Tsujikawa 4af4a7cfc3 clang-format-7 2019-04-07 12:49:10 +09:00
Tatsuhiro Tsujikawa eb7a15513a
Merge pull request #1315 from neheb/patch-1
Platform: Fix compilation without deprecated OpenSSL APIs
2019-04-07 12:39:12 +09:00
Rosen Penev 0e31e37c0f Platform: Fix compilation without deprecated OpenSSL APIs 2019-01-22 00:47:29 -08:00
Tatsuhiro Tsujikawa 37368130ca Mask headers 2019-01-05 09:32:40 +09:00
Tatsuhiro Tsujikawa 879e4a89b6 FileEntry: Use implicitly-declared copy constructor 2018-12-02 17:03:03 +09:00
Tatsuhiro Tsujikawa 03f40af361 Remove linux getrandom and use C++ stdlib instead 2018-11-25 22:51:57 +09:00
Tatsuhiro Tsujikawa c6b7cca5fe Don't send Accept Metalink header if Metalink is disabled 2018-11-18 19:02:13 +09:00
Tatsuhiro Tsujikawa 7e5757c238 Update doc 2018-10-13 20:56:59 +09:00
Tatsuhiro Tsujikawa e0a827ff98 Enable IndentPPDirectives 2018-06-09 16:23:36 +09:00
Tatsuhiro Tsujikawa b8df7b0880 gnutls: Fix bug that commonName is always empty 2018-06-05 21:27:45 +09:00
Ben Chaney 376854cfc4 Fix openssl API version logic for libressl 2.7.x 2018-06-03 01:10:36 -04:00
Tatsuhiro Tsujikawa 388d1ca330 Fix compile warning 2018-05-17 18:40:34 +09:00
Tatsuhiro Tsujikawa e8e04d6f22 Fix build failure when InternalDHKeyExchange is used 2018-05-17 18:39:44 +09:00
Tatsuhiro Tsujikawa 9bdc6eb34c clang-format 2018-05-15 21:09:56 +09:00