Wireshark-commits: [Wireshark-commits] master 60622e6: pcapng: fix more interface ID checks.
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 03 May 2020 18:46:41 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=60622e63fd561830e1de24e28ae4e5f7952ed130
Submitter: "Guy Harris <gharris@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

60622e6 by Guy Harris (guy@xxxxxxxxxxxx):

    pcapng: fix more interface ID checks.
    
    Fix the check for the Interface Statistics Block as well.
    
    Make the check for the Simple Packet BLock similar to the other checks -
    at the beginning, set interface_id to 0 and then check interface_id
    against the size of the array.
    
    Change-Id: Ib05255fe13eca6292447f365b62ff3094805bd4a
    Reviewed-on: https://code.wireshark.org/review/37071
    Petri-Dish: Guy Harris <gharris@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <gharris@xxxxxxxxx>
    

Actions performed:

    from  29340f1   pcpang: fix test for missing IDB.
     add  60622e6   pcapng: fix more interface ID checks.


Summary of changes:
 epan/dissectors/file-pcapng.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)