Wireshark-commits: [Wireshark-commits] master-2.6 7c438d8: Qt: fix several crashes in the SCTP Dial
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 22 Aug 2018 16:16:31 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=7c438d8ba2ff056c010e0930a664728699c482b0
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

7c438d8 by Vasil Velichkov (vvvelichkov@xxxxxxxxx):

    Qt: fix several crashes in the SCTP Dialogs
    
    Store the association id instead of a pointer to the volatile
    "sctp_assoc_info_t" structure because it gets freed after a rescan.
    
    Bug: 14970
    Change-Id: Id8fe2dfe3549bd711fc8ddef0770b217e83c2088
    Fixes: v1.11.3-rc1-604-g796bf409b0 ("Add dialogs and graphs to analyse SCTP behavior similar to the GTK version.")
    Reviewed-on: https://code.wireshark.org/review/28711
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    (cherry picked from commit b7a6a11376c75f02b827a3dbd7598ecf419f6151)
    Reviewed-on: https://code.wireshark.org/review/29244
    Tested-by: Petri Dish Buildbot
    

Actions performed:

    from  29c86f3   Qt: Enable "Resolve Names" for boolean without TFS
     add  7c438d8   Qt: fix several crashes in the SCTP Dialogs


Summary of changes:
 ui/qt/main_window_slots.cpp            |  8 +++--
 ui/qt/sctp_all_assocs_dialog.cpp       | 47 +++++--------------------
 ui/qt/sctp_all_assocs_dialog.h         |  4 +--
 ui/qt/sctp_assoc_analyse_dialog.cpp    | 64 +++++++++++++++++++++-------------
 ui/qt/sctp_assoc_analyse_dialog.h      | 14 ++++----
 ui/qt/sctp_chunk_statistics_dialog.cpp | 22 +++++++++---
 ui/qt/sctp_chunk_statistics_dialog.h   | 10 +++---
 ui/qt/sctp_graph_arwnd_dialog.cpp      | 26 ++++++++------
 ui/qt/sctp_graph_arwnd_dialog.h        |  9 ++---
 ui/qt/sctp_graph_byte_dialog.cpp       | 25 ++++++++-----
 ui/qt/sctp_graph_byte_dialog.h         |  7 ++--
 ui/qt/sctp_graph_dialog.cpp            | 56 ++++++++++++++++++-----------
 ui/qt/sctp_graph_dialog.h              | 13 +++----
 ui/tap-sctp-analysis.c                 |  6 ++++
 ui/tap-sctp-analysis.h                 |  2 +-
 15 files changed, 173 insertions(+), 140 deletions(-)