Wireshark-commits: [Wireshark-commits] master-3.2 992fd79: pcpang: fix test for missing IDB.

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

Commits:

992fd79 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/37103
    

Actions performed:

    from  099a7ea   pcapng: expert info when packet or ISB appear without interfaces
     add  992fd79   pcpang: fix test for missing IDB.


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