Wireshark-commits: [Wireshark-commits] master 5c67828: Qt: Check filename before import

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 05 Aug 2019 13:47:18 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5c678288bcbf4fe870a1582cf31eed6eaa17841c
Submitter: "Roland Knall <rknall@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

5c67828 by Roland Knall (rknall@xxxxxxxxx):

    Qt: Check filename before import
    
    Before the unzipped files are being copied from the temp directory,
    they are checked against the stored list of profile names, to ensure,
    that only allowed files are being imported.
    
    Also ensures, that no empty directory exists for the skipped one
    
    Bug: 15969
    Change-Id: I6ae8c9fb5f63d089d42fc0ef18dbe84baec515a2
    Reviewed-on: https://code.wireshark.org/review/34184
    Petri-Dish: Roland Knall <rknall@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    Reviewed-by: Roland Knall <rknall@xxxxxxxxx>
    

Actions performed:

    from  b31d116   GSM RR: Change the TMSI/PTMSI field name
     add  5c67828   Qt: Check filename before import


Summary of changes:
 debian/libwsutil0.symbols      |  1 +
 ui/qt/models/profile_model.cpp | 39 +++++++++++++++++++++++++++++++++++----
 ui/qt/models/profile_model.h   |  3 ++-
 wsutil/filesystem.c            |  6 ++++++
 wsutil/filesystem.h            |  5 +++++
 5 files changed, 49 insertions(+), 5 deletions(-)