Repository navigation
Changelog since 2.1.2
* apply the IP filter to WebRTC peers
* fix pread_disk_io use-after-free when a cached piece is evicted while another thread flushes it
* fix race between removing a torrent and a hash job parked in the pread disk cache
* fix file order when creating hybrid torrents
* fix web seed redirects
* limit the size of the allowed-fast set received from a peer
* validate the listen port in a peer's extension handshake (range, port filter and no_connect_privileged_ports)
* fix auto managed seeds being paused before they can be classified as inactive
* fix restoring scrape counters from resume data, and save unknown counters as -1
* ignore i2p peers with invalid destinations
* fix out of bounds write in the C binding's torrent handle table after removing torrents
* fix use-after-free reading a UPnP response body after the HTTP receive buffer grew
* fix i2p endpoints in alerts
* fix force_recheck() reusing stale hashes from the pread disk cache
* fix signed overflow in merkle_get_layer() for the largest v2 merkle trees
* fix memory leak verifying SSL torrent peer certificates with subject alt names
* fix web seed SSRF mitigation not applying to IPv6 addresses
* fix signed overflow validating a peer request with a length of INT_MAX
* fix pread disk I/O flushing stalls when disable_hash_checks is enabled.
The setting is now latched when a torrent is added
* fix close_file_interval for pread_disk_io
* fix pread disk I/O delaying a piece's writes after hashing it on a hashing thread
* fix (rare) data race with part files
* mitigate DHT peer storage flooding from a single IPv6 prefix
* fix CPU issue when tracker list includes invalid entries
* fix out of bounds write in the alert_message C binding on non-positive size
* fix pread disk I/O holding back write completions until the end of a flush
* fix pread disk I/O async_hash2() of a cached block that ends in a pad file
* improve copy_file throughput with dynamic buffer size
* fix disk.num_blocks_written over-counting with pread disk I/O
* fix uTP sockets stalling when the socket is closed while waiting for it to become writable
* harden HTTP redirects
* on POSIX, pass filenames to the OS as UTF-8, independent of the locale
* fix is_i2p_url() treating IPv6 literals with a crafted zone ID as i2p URLs
* fix DHT put of an item erasing from an empty table when dht_max_dht_items is 0
* fix announce_to_all_tiers and announce_to_all_trackers names being swapped
* only count the final timeout of a DHT request as a node failure, not the short timeout
* fix a few DHT routing table and storage bugs
* fix DHT traversals sending requests to our own node ID
* fix DHT put with a public key but no signature being stored under the mutable item's target
* fix outgoing i2p connections on v2-only torrents
* reject loading v2 torrents where files of different sizes share a pieces root
* fix byte counts of a seed's re-created piece picker leaving out pad bytes
(a v2 torrent rechecked after a skipped file was deleted stayed below 100%)
* fix bind_to_device on windows
* fix rollback of move-storage
* fix renaming sanitized files back to their original name
What's Changed
- fix alignment issue by @arvidn in #8914
- Test merge by @arvidn in #8915
- Fix millisecond conversion in download_queue_time() by @TheoGibbons in #8913
- Fix sparse file copies on Windows by @M-Hassan-Raza in #8917
- fix num_blocks_written counter in pread_disk_io by @sabkaryan in #8920
- Optimize rare partial piece selection by @M-Hassan-Raza in #8918
- Handle rooted redirect references by @M-Hassan-Raza in #8822
- improve copy_file throughput with dynamic buffer size by @arvidn in #8923
- bump CI to run on macos-15 runners by @arvidn in #8925
- locked pieces cannot be picked by @arvidn in #8928
- fix potential integer overflow in copy_file, with large extents by @arvidn in #8927
- make copy_file() fail if the source file is truncated mid-copy by @arvidn in #8933
- prefer std::array by @arvidn in #8932
- use fiemap in copy_file by @arvidn in #8935
- test_filesystems by @arvidn in #8936
- fix async_hash2() of a cached block that ends in a pad file by @sabkaryan in #8930
- improve checking_benchmark by @arvidn in #8942
- complete writes piece by piece during a pread_disk_io flush pass by @sabkaryan in #8921
- Test merge by @arvidn in #8943
- fix renaming sanitized files back to their original name by @arvidn in #8944
- harden generate_prefix_mask() by @arvidn in #8949
- harden web seed response validation by @arvidn in #8950
- fix out of bounds write in alert_message on non-positive size by @isl-Ramzi in #8939
- Test merge by @arvidn in #8953
- fix rollback of move-storage by @arvidn in #8955
- CPU issue when tracker list includes invalid entries by @arvidn in #8957
- back-port fix for update_tracker_timer by @arvidn in #8959
- clamp prefix length in build_netmask to avoid out of bounds write by @isl-Ramzi in #8798
- monotonic disk latency by @arvidn in #8968
- More dht fuzzing by @arvidn in #8969
- Report a dedicated error for a part-file piece that was never written by @Thiteago in #8878
- oss-scanner files by @arvidn in #8972
- support failure reason in webtorrent tracker responses by @arvidn in #8971
- extend bencher to cover peer_list by @arvidn in #8973
- mitigate IPv6 flooding of the DHT by @arvidn in #8975
- minor refactor of back pressure accounting in disk_cache by @arvidn in #8977
- Count fenced writes in disk back-pressure by @arvidn in #8978
- fix insert_write by @arvidn in #8980
- implement bind_to_device on windows by @arvidn in #8963
- fix (rare) data race with part files by @arvidn in #8981
- Test merge by @arvidn in #8983
- wake a generic thread after pread_disk_io hashes a piece in the cache by @arvidn in #8982
- Handle WebSocket tracker failures without an info_hash by @jasminsehic in #8979
- Use string_view in WebSocket tracker parser tests by @jasminsehic in #8984
- Reissue WebSocket tracker reads with a scope guard by @jasminsehic in #8985
- fix subtle race in flush_storage() by @arvidn in #8988
- fix subtle edge case in file_piece_range_exclusive by @arvidn in #8990
- move shared_ptr in torrent_handle by @arvidn in #8992
- remove codeQL, as it's mostly false positives by @arvidn in #8993
- assert that torrent is always destructed on the network thread by @arvidn in #8989
- fix workflow filter for cppcheck by @arvidn in #8997
- fix pread disk I/O close_file_interval and flush_metadata for part file by @arvidn in #8986
- improve disk_buffer_pool by @arvidn in #8999
- fix unreasonable exception from torrent_handle::in_session() by @arvidn in #9005
- simplify inline asm blocks for CRC32C by @arvidn in #9006
- Test merge by @arvidn in #9009
- fix detecting part file in posix_disk_io has_any_file() by @arvidn in #9007
- follow-up to fix torrent_handle::in_session() properly by @arvidn in #9015
- fix disk flushing issue when disable_hash_checks is enabled by @arvidn in #9008
- update fallback for pwritev_all() to merge the buffers into a new all… by @arvidn in #9017
- disabling hash checks with create_torrent does not make sense by @arvidn in #9019
- improve run_benchmarks.py by @arvidn in #9023
- fix signed overflow in incoming_request on a length of INT_MAX by @isl-Ramzi in #9020
- don't let dot-segments bypass the tracker SSRF announce path check by @isl-Ramzi in #9000
- fix uTP sockets stalling when the socket is closed by @arvidn in #9024
- call abort() correctly in test_disk_io by @arvidn in #9030
- coalesce adjacent disk read jobs in pread_disk_io by @arvidn in #9027
- add fuzzer for seeding peer by @arvidn in #9035
- fill_send_buffer(): erase the requests it handled in one go by @ghz-max in #9034
- add reentrancy debug check for m_requests by @arvidn in #9037
- apply the web seed SSRF check to IPv6 addresses by @isl-Ramzi in #9026
- release a read-only file before reopening it read-write by @ghz-max in #9032
- Add missing cmake build options by @HanabishiRecca in #9041
- avoid an unecessary copy of the send buffer when using protocol encryption by @arvidn in #9044
- ceil_div() utility function by @arvidn in #9062
- fix leak of X509_get_ext_d2i() by @arvidn in #9064
- add missing include in escape_string.cpp by @r3wretrhy in #9059
- use stricter checking of include dependencies in libc++ by @arvidn in #9065
- bump max_requests to allow higher download rate by @arvidn in #9063
- fix signed overflow in merkle_get_layer() for the largest v2 trees by @isl-Ramzi in #8994
- fix test_disk_io to properly shut down by @arvidn in #9069
- web seeds should make large requests by @arvidn in #9068
- fix a re-created piece picker leaving out pad bytes by @diogochaves in #9056
- Test merge by @arvidn in #9072
- fix force_recheck() answering from the pread disk cache by @arvidn in #9073
- fix read bytes counters when checking files with pread_disk_io by @arvidn in #9075
- convert naked new -> make_unique by @arvidn in #9076
- add test for disk_io_mmap_cutoff by @arvidn in #9077
- transition from macos-14 runners to macos-15 by @arvidn in #9082
- Fix identical file root hashes by @arvidn in #9078
- fix mapping of hash responses to the correct file index by @arvidn in #9081
- fix resolve_links by @arvidn in #9080
- Test merge by @arvidn in #9083
- Keep .i2p HTTP trackers on SAM when an HTTP proxy is configured by @jasminsehic in #9085
- cleanup file root patch by @arvidn in #9086
- pass the correct pex flags when adding i2p peers by @arvidn in #9087
- fix i2p endpoints in alerts by @arvidn in #9088
- add torrent_handle::connect_peer() overload for i2p destinations by @arvidn in #9089
- Test merge by @arvidn in #9092
- correctly abort i2p name lookups on shutdown by @arvidn in #9090
- make i2p name lookups more robust by @arvidn in #9091
- make sure torrent objects are always destructed on the network thread by @arvidn in #9098
- fix use-after-free of the http_parser body by @arvidn in #9101
- C bindings by @arvidn in #9102
- ignore i2p peers with invalid destinations by @arvidn in #9103
- fix edge case in piece_picker::restore_piece() by @arvidn in #9109
- prioritize_udp_trackers no longer moves trackers across tier boundaries by @arvidn in #9107
- in mmap_disk_io, retry creating files when failing to write to them by @arvidn in #9114
- fix update_tracker_timer() to match announce_to_tracker() by @arvidn in #9117
- Prioritize udp trackers by @arvidn in #9118
- fix regression introduced in #8720 by @arvidn in #9120
- fix DHT put with a public key but no signature being stored under the mutable item's target by @gubatron in #9128
- fix saving and restoring of scrape data in resume data by @arvidn in #9143
- fix DHT traversals sending requests to our own node ID by @gubatron in #9136
- update win_install_openssl/action.yml by @arvidn in #9148
- Dht fixes by @arvidn in #9150
- fix accounting for num_peers_down_requests and num_peers_up_requests by @arvidn in #9152
- fixup the branch factor adjustment by @arvidn in #9154
- Test merge by @arvidn in #9153
- Fix typo swapping announce_to_all_tiers and announce_to_all_trackers by @arvidn in #9156
- Auto managed seeding by @arvidn in #9146
- fix integer overflow in seed_rank() by @arvidn in #9158
- correct accounting for job types in performance counters by @arvidn in #9155
- fix reporting the random_access file mode by @arvidn in #9159
- Test merge by @arvidn in #9160
- validate the listen port in a peer's extension handshake by @gubatron in #9168
- limit the size of the allowed-fast set received from a peer by @gubatron in #9165
- fix extension message IDs outside of 1-255 in an extension handshake being truncated to a byte by @gubatron in #9162
- fix DHT put of an item erasing from an empty table when dht_max_dht_items is 0 by @gubatron in #9141
- fix web seed redirects by @gubatron in #9167
- fix session stats counters for incoming fast extension messages by @gubatron in #9169
- fix out-of-bounds access in upnp::delete_mapping() with an invalid handle by @jsavyasachi in #9176
- reject invalid DHT PUT messages by @arvidn in #9157
- Test merge by @arvidn in #9185
- fix file order when creating hybrid torrents by @gubatron in #9183
- harden peer_list by @arvidn in #9182
- I2p hardening by @arvidn in #9188
- fix edge case in is_i2p_url() by @arvidn in #9191
- back-port mmap_disk_io pad file fix by @arvidn in #9190
- fix pe_crypto barrier handling by @arvidn in #9192
- fix reading pad files from a cache hit in pread_disk_io by @arvidn in #9189
- fail early on invalid i2p hostnames by @arvidn in #9193
- harden i2p trackers by @arvidn in #9194
- drop support for non UTF-8 locales by @arvidn in #9196
- Test merge by @arvidn in #9197
- fix integer overflow when a tracker responds with a very large announce interval by @gubatron in #9163
- Canonical i2p destination encodings by @arvidn in #9198
- harden web seeds by @arvidn in #9202
- webtorrent peers do not support proxies by @arvidn in #9201
- simplify torrent_info by @arvidn in #9203
- fix http_connection retrying a connection by @arvidn in #9205
- fix mutable torrents by @arvidn in #9206
- Test merge by @arvidn in #9207
- fix gzip failure path in http_handler by @arvidn in #9208
- fail web seeds with large response headers early by @arvidn in #9213
- harden http_connection redirect path by posting the handler by @arvidn in #9212
- Test merge by @arvidn in #9216
- count hash jobs parked in the pread disk cache by @arvidn in #9219
- fix disk cache race by @arvidn in #9223
- limit directory depth for v1 torrent, just like v2 already does by @arvidn in #9224
- improve hard and symbolic links by @arvidn in #9225
- apply the IP filter to WebRTC peers by @isl-Ramzi in #9214
- fix flaky test_flags by @arvidn in #9226
- harden HTTP redirects by @arvidn in #9228
- make wait_for_state() a general test helper by @arvidn in #9227
- I2P SAM hardening by @jpk68 in #9184
- Test merge by @arvidn in #9231
- optimize seed_rank sorting by @arvidn in #9230
- add missing include by @arvidn in #9232
- Ed25519 fuzzer by @arvidn in #9234
- bump version to 2.0.16 by @arvidn in #9233
- Update tracker timer by @arvidn in #9229
- Test merge by @arvidn in #9237
- improve ed25519 fuzzer by @arvidn in #9238
- Update libdatachannel to
0.24.8by @Chocobo1 in #9221 - use thread CPU time instead of wall clock time in bencher by @arvidn in #9240
- bump version to 2.1.3 by @arvidn in #9239
New Contributors
- @TheoGibbons made their first contribution in #8913
- @sabkaryan made their first contribution in #8920
- @Thiteago made their first contribution in #8878
- @ghz-max made their first contribution in #9034
- @r3wretrhy made their first contribution in #9059
- @diogochaves made their first contribution in #9056
- @jsavyasachi made their first contribution in #9176
- @jpk68 made their first contribution in #9184
Full Changelog: v2.1.2...v2.1.3