Wireshark-commits: [Wireshark-commits] master-3.0 9a2f2d7: pcpang: fix test for missing IDB.

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

Commits:

9a2f2d7 by Guy Harris (guy@xxxxxxxxxxxx):

    pcpang: fix test for missing IDB.
    
    *Any* packet block can have an invalid interface ID; that's not just an
    error in the first packet block.
    
    For Enhanced Packet Blocks and Packet Blocks, you can have an invalid
    interface ID even if you've already seen one or more Interface
    Description Blocks; you have to check whether the interface ID is >= the
    number of IDBs we've seen.
    
    Change-Id: I33268d224ef3ad928ad9c000027fb6783806b978
    Reviewed-on: https://code.wireshark.org/review/37070
    Petri-Dish: Guy Harris <gharris@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <gharris@xxxxxxxxx>
    (cherry picked from commit 29340f1b33db6f3abb4bdd80a949430d20020d7d)
    Reviewed-on: https://code.wireshark.org/review/37104
    

Actions performed:

    from  37180eb   pcapng: expert info when packet or ISB appear without interfaces
     add  9a2f2d7   pcpang: fix test for missing IDB.


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