diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-09-28 22:13:24 +0200 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2015-09-28 20:59:44 +0000 |
commit | 5a39cf8ec942bc0180f598f9c8fdf58418f212eb (patch) | |
tree | e5785a1a3ee11f550910af93ea72f2dba10f5054 /ui | |
parent | 009b40ba0631de7bba2d8d34a8d529a9b859f7c6 (diff) | |
download | wireshark-5a39cf8ec942bc0180f598f9c8fdf58418f212eb.tar.gz |
Qt: fix OVERRUN error reported by Coverity in LTE MAC statistics window (CID 1325078)
Change-Id: I281b344ea76418399e2a8038f1220310f6a50bc2
Reviewed-on: https://code.wireshark.org/review/10679
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/lte_mac_statistics_dialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/qt/lte_mac_statistics_dialog.cpp b/ui/qt/lte_mac_statistics_dialog.cpp index 49c304175b..411394a110 100644 --- a/ui/qt/lte_mac_statistics_dialog.cpp +++ b/ui/qt/lte_mac_statistics_dialog.cpp @@ -81,7 +81,7 @@ public: rnti_(rnti) { // Init values held for all lcids to 0. - for (int n=0; n < 10; n++) { + for (int n=0; n < 11; n++) { lcids[n] = 0; } @@ -114,7 +114,7 @@ public: void draw() { // Show current value of counter for each LCID. - for (int n=0; n < 10; n++) { + for (int n=0; n < 11; n++) { setText(col_type_+n, QString("").sprintf("%u", lcids[n])); } } @@ -144,7 +144,7 @@ public: private: unsigned ueid_; unsigned rnti_; - int lcids[10]; + int lcids[11]; }; |