transmission/libtransmission
Charles Kerr a5ca289f41
fix: #3847 crash on session close (#3849)
* chore: use typesafe sin_addr assignment instead of memcpy()

* refactor: make tr_dhtPrintableStatus private

* refactor: make tr_dhtStatus() private

* refactor: make tr_dht status enum private

* refactor: add safety mutex wrapper around libdht API calls

* refactor: make tr_dht::Status an enum class

* refactor: rename private functions

* refactor: const correctness

* refactor: use typesafe assignment instead of memcpy

* refactor: tr_session does not directly call tr_dht

* refactor: tr_dhtPort() returns std::optional

* refactor: use tr_address::fromCompact4 in tr-dht.cc
2022-09-29 09:12:33 -05:00
..
.clang-tidy refactor: cppcoreguidelines-avoid-goto (#3841) 2022-09-23 08:39:13 -05:00
CMakeLists.txt refactor: fold session UDP innards into C++ class (#3794) 2022-09-21 13:25:53 -05:00
announce-list.cc refactor: avoid tr_new() in transmission-remote (#3665) 2022-08-17 20:25:42 -05:00
announce-list.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
announcer-common.h refactor: constify (#3780) 2022-09-06 12:52:58 -05:00
announcer-http.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
announcer-udp.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
announcer.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
announcer.h refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
bandwidth.cc refactor: tr_peerIo ref, unref (#3735) 2022-08-30 12:38:30 -05:00
bandwidth.h chore: iwyu headers (#3833) 2022-09-21 18:34:18 -05:00
benc.h perf: make methods constexpr (#3742) 2022-08-30 23:17:23 -05:00
bitfield.cc refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
bitfield.h perf: make methods constexpr (#3742) 2022-08-30 23:17:23 -05:00
block-info.cc refactor: make blockinfo methods constexpr (#3682) 2022-08-20 10:40:18 -05:00
block-info.h refactor: make blockinfo methods constexpr (#3682) 2022-08-20 10:40:18 -05:00
blocklist.cc refactor: remove tr_sys file_map_for_reading() (#3723) 2022-08-27 14:05:21 -05:00
blocklist.h refactor: remove tr_sys file_map_for_reading() (#3723) 2022-08-27 14:05:21 -05:00
cache.cc refactor: constify (#3780) 2022-09-06 12:52:58 -05:00
cache.h refactor: constify (#3780) 2022-09-06 12:52:58 -05:00
clients.cc add clientIDs for BitTorrent Web, Free Download Manager 6, Torch Browser (#3838) 2022-09-22 16:55:51 -05:00
clients.h refactor: simplify tr_clientForId() (#3751) 2022-09-03 02:13:22 -05:00
completion.cc perf: make methods constexpr (#3742) 2022-08-30 23:17:23 -05:00
completion.h perf: make methods constexpr (#3742) 2022-08-30 23:17:23 -05:00
crypto-utils-ccrypto.cc perf: sonarcloud warnings about temp objects (#3686) 2022-08-20 15:57:32 -05:00
crypto-utils-cyassl.cc perf: sonarcloud warnings about temp objects (#3686) 2022-08-20 15:57:32 -05:00
crypto-utils-fallback.cc refactor: remove tr_dh code (#3443) 2022-07-14 19:54:10 -05:00
crypto-utils-openssl.cc refactor: modernize-avoid-c-arrays pt. 1 (#3702) 2022-08-24 20:19:21 -05:00
crypto-utils-polarssl.cc perf: sonarcloud warnings about temp objects (#3686) 2022-08-20 15:57:32 -05:00
crypto-utils.cc refactor: modernize-avoid-c-arrays pt. 1 (#3702) 2022-08-24 20:19:21 -05:00
crypto-utils.h refactor: add [[nodiscard]] (#3793) 2022-09-08 21:49:51 -05:00
error-types.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
error.cc refactor: remove tr_free() (#3668) 2022-08-18 09:14:12 -05:00
error.h fix: fix various user facing and non-user facing typos (#3743) 2022-08-31 11:28:54 -05:00
file-piece-map.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
file-piece-map.h chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
file-posix.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
file-win32.cc refactor: cppcoreguidelines-avoid-goto (#3841) 2022-09-23 08:39:13 -05:00
file.cc refactor: remove tr_sys file_map_for_reading() (#3723) 2022-08-27 14:05:21 -05:00
file.h test: improve file-win32, file-posix test coverage (#3761) 2022-09-04 19:40:34 -05:00
handshake.cc chore: iwyu headers (#3833) 2022-09-21 18:34:18 -05:00
handshake.h refactor: prefer std::unique_ptr over std::shared_ptr (#3741) 2022-08-30 19:30:47 -05:00
history.h chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
inout.cc fix: when renaming local data files fails, set the torrent error and pause the torrent (#3717) 2022-08-26 18:57:44 -05:00
inout.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
interned-string.h refactor: remove tr_quark_get_string() (#3728) 2022-08-28 16:17:07 -05:00
jsonsl.c
jsonsl.h fix: fix various user facing and non-user facing typos (#3743) 2022-08-31 11:28:54 -05:00
libt.dox
log.cc refactor: remove TR_PRIsv macros (#3842) 2022-09-23 14:36:37 -05:00
log.h refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
lru-cache.h perf: make methods constexpr (#3742) 2022-08-30 23:17:23 -05:00
magnet-metainfo.cc fix: fix various user facing and non-user facing typos (#3743) 2022-08-31 11:28:54 -05:00
magnet-metainfo.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
makemeta.cc perf: sonarcloud warnings about temp objects (#3686) 2022-08-20 15:57:32 -05:00
makemeta.h refactor: add [[nodiscard]] (#3793) 2022-09-08 21:49:51 -05:00
mime-types.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
mime-types.js chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
natpmp.cc refactor: modernize-avoid-c-arrays pt. 1 (#3702) 2022-08-24 20:19:21 -05:00
natpmp_local.h refactor: remove tr_sys file_map_for_reading() (#3723) 2022-08-27 14:05:21 -05:00
net.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
net.h refactor: tr_globalIPv6() returns a std::optional<in6_addr> (#3836) 2022-09-21 23:59:31 -05:00
open-files.cc refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
open-files.h chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
peer-common.h refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
peer-io.cc refactor: cppcoreguidelines-avoid-goto (#3841) 2022-09-23 08:39:13 -05:00
peer-io.h refactor: add tr_peerIo::peek() (#3798) 2022-09-09 13:12:47 -05:00
peer-mgr-active-requests.cc refactor: iwyu (#3525) 2022-07-25 21:45:54 -05:00
peer-mgr-active-requests.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
peer-mgr-wishlist.cc chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
peer-mgr-wishlist.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
peer-mgr.cc refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
peer-mgr.h refactor: add [[nodiscard]] (#3793) 2022-09-08 21:49:51 -05:00
peer-mse.cc refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
peer-mse.h perf: make methods constexpr (#3742) 2022-08-30 23:17:23 -05:00
peer-msgs.cc fix: #3847 crash on session close (#3849) 2022-09-29 09:12:33 -05:00
peer-msgs.h refactor: constify (#3780) 2022-09-06 12:52:58 -05:00
peer-socket.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
platform-quota.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
platform-quota.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
platform.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
platform.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
port-forwarding.cc chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
port-forwarding.h refactor: remove tr_new, tr_free pt. 1 (#3626) 2022-08-11 19:59:58 -05:00
quark.cc refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
quark.h refactor: remove tr_quark_get_string() (#3728) 2022-08-28 16:17:07 -05:00
resume.cc refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
resume.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
rpc-server.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
rpc-server.h refactor: prefer std::unique_ptr over std::shared_ptr (#3741) 2022-08-30 19:30:47 -05:00
rpcimpl.cc refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
rpcimpl.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
session-id.cc refactor: make tr_session_id a class (#3598) 2022-08-06 14:27:37 -05:00
session-id.h fix: coverity warnings (#3632) 2022-08-13 12:11:07 -05:00
session.cc fix: #3847 crash on session close (#3849) 2022-09-29 09:12:33 -05:00
session.h fix: #3847 crash on session close (#3849) 2022-09-29 09:12:33 -05:00
stats.cc refactor: local peer discovery (#3696) 2022-08-24 16:03:30 -05:00
stats.h refactor: more constexpr (#3744) 2022-08-31 17:33:51 -05:00
subprocess-posix.cc refactor: cppcoreguidelines-avoid-goto (#3841) 2022-09-23 08:39:13 -05:00
subprocess-win32.cc chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
subprocess.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
timer-ev.cc fix: fix various user facing and non-user facing typos (#3743) 2022-08-31 11:28:54 -05:00
timer-ev.h refactor: remove unnecessary default destructors (#3740) 2022-08-30 14:31:40 -05:00
timer.h chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
torrent-ctor.cc refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
torrent-files.cc chore: iwyu headers (#3833) 2022-09-21 18:34:18 -05:00
torrent-files.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
torrent-magnet.cc refactor: use std::ifstream in torrent-magnet (#3726) 2022-08-28 12:33:58 -05:00
torrent-magnet.h refactor: remove tr_session nonmember functions (#3641) 2022-08-14 14:41:57 -05:00
torrent-metainfo.cc chore: iwyu headers (#3833) 2022-09-21 18:34:18 -05:00
torrent-metainfo.h refactor: more constexpr (#3744) 2022-08-31 17:33:51 -05:00
torrent.cc refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
torrent.h refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
torrents.cc fix: 3579 assertion when RPC client asks for torrent-id 0 (#3683) 2022-08-20 11:55:32 -05:00
torrents.h chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
tr-arc4.h refactor: aggregate arc4 into libtransmission (#3684) 2022-08-20 13:41:40 -05:00
tr-assert.cc refactor: iwyu (#3525) 2022-07-25 21:45:54 -05:00
tr-assert.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
tr-assert.mm fix: fix various user facing and non-user facing typos (#3743) 2022-08-31 11:28:54 -05:00
tr-dht.cc fix: #3847 crash on session close (#3849) 2022-09-29 09:12:33 -05:00
tr-dht.h fix: #3847 crash on session close (#3849) 2022-09-29 09:12:33 -05:00
tr-getopt.cc refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
tr-getopt.h refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
tr-lpd.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
tr-lpd.h fix: lpd fixup (#3704) 2022-08-24 22:18:58 -05:00
tr-macros.h refactor: remove TR_PRIsv macros (#3842) 2022-09-23 14:36:37 -05:00
tr-popcount.h fix: fix various user facing and non-user facing typos (#3743) 2022-08-31 11:28:54 -05:00
tr-strbuf.h refactor: remove unnecessary default destructors (#3740) 2022-08-30 14:31:40 -05:00
tr-udp.cc fix: #3847 crash on session close (#3849) 2022-09-29 09:12:33 -05:00
tr-utp.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
tr-utp.h Update libutp to 3.4+ (TRAC-5888) (#3416) 2022-07-08 10:13:22 -05:00
transmission.h chore: iwyu headers (#3833) 2022-09-21 18:34:18 -05:00
trevent.cc chore: iwyu headers (#3833) 2022-09-21 18:34:18 -05:00
trevent.h refactor: timer pt 3 (#3624) 2022-08-11 14:30:00 -05:00
upnp.cc chore: iwyu headers (#3833) 2022-09-21 18:34:18 -05:00
upnp.h refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
utils.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
utils.h refactor: use readability-identifier-naming in clang-tidy (#3784) 2022-09-07 11:04:28 -05:00
variant-benc.cc refactor: split tr_parseNum inout var into two vars (#3748) 2022-09-02 01:04:09 -05:00
variant-common.h refactor: add [[nodiscard]] (#3793) 2022-09-08 21:49:51 -05:00
variant-json.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
variant.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
variant.h refactor: add [[nodiscard]] (#3793) 2022-09-08 21:49:51 -05:00
verify.cc fix: recent coverity warnings (#3788) 2022-09-07 19:24:56 -05:00
verify.h refactor: move the verify worker thread into a wrapper class (#3775) 2022-09-05 23:43:59 -05:00
version.h.in
watchdir-base.h refactor: remove unnecessary default destructors (#3740) 2022-08-30 14:31:40 -05:00
watchdir-generic.cc chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
watchdir-inotify.cc chore: add cppcoreguidelines-pro-type-member-init to libtransmission/.clang-tidy (#3840) 2022-09-23 00:51:15 -05:00
watchdir-kqueue.cc chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
watchdir-win32.cc chore: iwyu headers (#3661) 2022-08-17 11:08:36 -05:00
watchdir.cc chore: iwyu headers (#3833) 2022-09-21 18:34:18 -05:00
watchdir.h chore: iwyu headers (#3833) 2022-09-21 18:34:18 -05:00
web-utils.cc refactor: replace tr_http_escape() with tr_urlEscape() (#3678) 2022-08-19 14:33:06 -05:00
web-utils.h refactor: add [[nodiscard]] (#3793) 2022-09-08 21:49:51 -05:00
web.cc refactor: prefer std::unique_ptr over std::shared_ptr (#3741) 2022-08-30 19:30:47 -05:00
web.h Fix IPv6 announce socket binding interface. (#3692) 2022-08-21 18:37:38 -05:00
webseed.cc chore: iwyu headers (#3833) 2022-09-21 18:34:18 -05:00
webseed.h chore: fix spdx abbreviations (#3602) 2022-08-08 13:05:39 -05:00
wildmat.c