Wireshark-commits: [Wireshark-commits] master-3.2 5473477: pcapng: fix more interface ID checks.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 04 May 2020 19:01:04 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=547347773b2ced0a2e60ec9720a9d35d93e4ed1b
Submitter: "Guy Harris <gharris@xxxxxxxxx>"
Changed: branch: master-3.2
Repository: wireshark

Commits:

5473477 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>
    (cherry picked from commit 60622e63fd561830e1de24e28ae4e5f7952ed130)
    Reviewed-on: https://code.wireshark.org/review/37106
    

Actions performed:

    from  992fd79   pcpang: fix test for missing IDB.
     add  5473477   pcapng: fix more interface ID checks.


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