Range-check global throttle rates before narrowing them to kB.

Multiplying kB back to bytes in unsigned int wrapped 2^32 to 0, which means unlimited.
This commit is contained in:
xirvik
2026-09-19 00:55:27 +00:00
committed by Jari Sundell
parent 05cdd03cd2
commit 83b03c2c1e
5 changed files with 151 additions and 8 deletions
+2
View File
@@ -67,6 +67,8 @@ rtorrent_Test_Src_SOURCES = $(rtorrent_Test_Common) \
src/test_command_path.h \
src/test_command_string.cc \
src/test_command_string.h \
src/test_command_throttle.cc \
src/test_command_throttle.h \
src/test_setup.cc \
src/test_setup.h \
src/test_ui_download_list.cc \