https://bugs.kde.org/show_bug.cgi?id=514395

--- Comment #6 from Jack Hill <[email protected]> ---
Git commit ce3a8d74e101cecc22cc8f9149e59a43e43e69be by Jack Hill.
Committed on 10/03/2026 at 19:33.
Pushed by jackh into branch 'master'.

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.

M  +4    -1    src/utp/remotewindow.cpp

https://invent.kde.org/network/libktorrent/-/commit/ce3a8d74e101cecc22cc8f9149e59a43e43e69be

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to