diff options
author | kkoizumi <kkoizumi46@gmail.com> | 2016-02-27 00:47:30 +0900 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2016-02-26 18:37:15 +0000 |
commit | 0b3544083e89abd38443cff4691d9fc616ccf995 (patch) | |
tree | fa117ad1f00916253885cecb2f148de92d57919b /ui | |
parent | 070fc33e8501168debf879b9068da5da8e6445d6 (diff) | |
download | wireshark-0b3544083e89abd38443cff4691d9fc616ccf995.tar.gz |
tcp_stream_dialog: Integer overflow in Average Throughput
Overflow occurs in the TCP Stream Graphs window when Average Throughput exceeds 20-30 Gbps.
* Screenshot examples
https://raw.githubusercontent.com/koizumi-k/pub/master/misc/stream1-current-win64.png
https://raw.githubusercontent.com/koizumi-k/pub/master/misc/stream2-current-win64.png
Change-Id: I4e557fdeae659ef27b986fca18c74cc8983fe4d3
Reviewed-on: https://code.wireshark.org/review/14163
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/tcp_stream_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/tcp_stream_dialog.cpp b/ui/qt/tcp_stream_dialog.cpp index 88e426b54a..5cdfcecad6 100644 --- a/ui/qt/tcp_stream_dialog.cpp +++ b/ui/qt/tcp_stream_dialog.cpp @@ -644,7 +644,7 @@ void TCPStreamDialog::fillThroughput() QVector<double> rel_time, seg_len, tput_time, tput; int oldest = 0; - int sum = 0; + guint64 sum = 0; // Financial charts don't show MA data until a full period has elapsed. // The Rosetta Code MA examples start spitting out values immediately. // For now use not-really-correct initial values just to keep our vector |