Wireshark-commits: [Wireshark-commits] master-2.6 371fcaf: Qt: do not expose a UAT record if the up

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 15 May 2019 21:39:11 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=371fcaf019ec4433c9a287c1b02cd63b0ff0df0e
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

371fcaf by Peter Wu (peter@xxxxxxxxxxxxx):

    Qt: do not expose a UAT record if the update callback fails
    
    The default chk callbacks for individual fields only catches basic
    errors such as invalid, too large numbers. Many dissectors perform
    additional validation in the update_cb which is invoked for a record as
    a whole. If this check fails, then the UAT must not be marked as valid
    or else invalid records (like NULL pointers) could be exposed.
    
    Thanks to Uli Heilmeier for noticing this.
    
    Bug: 15709
    Change-Id: I1cc4c6925322011a561ad6df840fbac67796e5b2
    Fixes: v2.3.0rc0-1002-g1cd22559a8 ("Qt: convert UatDialog to model/view pattern, improve UX")
    Reviewed-on: https://code.wireshark.org/review/33157
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Uli Heilmeier <openid@xxxxxxxxxxxx>
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    (cherry picked from commit 7b43c480f6c2914e7d5fa69d78e69b0a50fed7c7)
    Reviewed-on: https://code.wireshark.org/review/33210
    Petri-Dish: Anders Broman <a.broman58@xxxxxxxxx>
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  536eae4   mmdbresolve: Improve our main loop check.
     add  371fcaf   Qt: do not expose a UAT record if the update callback fails


Summary of changes:
 ui/qt/models/uat_model.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)