Wireshark-commits: [Wireshark-commits] master 66b868d: Strengthen the PacketLogger heuristics.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 03 Sep 2019 01:05:49 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=66b868d8d1763a7f3a1e290dc7e188a102c791d1
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

66b868d by Guy Harris (guy@xxxxxxxxxxxx):

    Strengthen the PacketLogger heuristics.
    
    Check the time stamp microseconds field; it must be < 10^6.
    
    Check the first few packets, not just the first packet.
    
    Change-Id: I35a58a79d48db13daee937374caae40bc320e9e7
    Ping-Bug: 16031
    Reviewed-on: https://code.wireshark.org/review/34437
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  45eadc0   What we're testing for is byte-swappedness, not raw endianness.
     add  66b868d   Strengthen the PacketLogger heuristics.


Summary of changes:
 wiretap/packetlogger.c | 179 +++++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 159 insertions(+), 20 deletions(-)