Always use the same limits when parse bencoded data

PR #19263.
This commit is contained in:
Vladimir Golovnev
2023-07-02 11:37:37 +03:00
committed by GitHub
parent 48d5e3326b
commit 80c637bf99
6 changed files with 19 additions and 12 deletions

View File

@@ -35,8 +35,6 @@
#define QBT_APP_64BIT
#endif
inline const int MAX_TORRENT_SIZE = 100 * 1024 * 1024; // 100 MiB
template <typename T>
constexpr typename std::add_const_t<T> &asConst(T &t) noexcept { return t; }