https://bugs.kde.org/show_bug.cgi?id=514395
--- Comment #9 from Jack Hill <[email protected]> --- Git commit 229c3ac74079afcf9543833867d1e8d5f4e588d3 by Jack Hill. Committed on 11/03/2026 at 18:54. Pushed by jackh into branch 'fix/utp-backport'. Use std::round instead of qRound to fix out of bounds issue qRound only returns an int, so for very large values of max_window (uint32) it is possible to get a result that does not fit into an `int`. Instead we can just use std::round, which returns a double. Since we're only scaling the number down, we can then just static_cast to uint32 with no bounds checking. (cherry picked from commit ce3a8d74e101cecc22cc8f9149e59a43e43e69be) M +4 -1 src/utp/remotewindow.cpp https://invent.kde.org/network/libktorrent/-/commit/229c3ac74079afcf9543833867d1e8d5f4e588d3 -- You are receiving this mail because: You are watching all bug changes.
