Wireshark-commits: [Wireshark-commits] master-2.6 26db565: Qt: Avoid crash for ByteViewTab with 0 b

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 02 Sep 2018 18:21:49 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=26db56558d7d8d62ce3b535d8adbb139a0c60f99
Submitter: "Stig Bjørlykke <stig@xxxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

26db565 by Stig Bjørlykke (stig@xxxxxxxxxxxxx):

    Qt: Avoid crash for ByteViewTab with 0 bytes
    
    A ByteViewTab with 0 bytes is not useful, but may happen.
    The crash could be reproduced with the following Lua code:
    
      local t = ByteArray.new():tvb()
    
    Change-Id: I256fd7fc2b91aa3c1161c46558c647308a3d564b
    Reviewed-on: https://code.wireshark.org/review/29383
    Petri-Dish: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    Reviewed-by: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    (cherry picked from commit cb002c597a4e4635b1743cb178301dc46b7d01de)
    Reviewed-on: https://code.wireshark.org/review/29399
    

Actions performed:

    from  66d05f9   [Automatic update for 2018-09-02]
     add  26db565   Qt: Avoid crash for ByteViewTab with 0 bytes


Summary of changes:
 ui/qt/byte_view_tab.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)