Wireshark-commits: [Wireshark-commits] master 5635d9a: Check for packets bigger than WTAP_MAX_PACKE

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 30 Apr 2016 01:55:56 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5635d9a02dff05dded9c40e34520a7e309789af6
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

5635d9a by Guy Harris (guy@xxxxxxxxxxxx):

    Check for packets bigger than WTAP_MAX_PACKET_SIZE.
    
    And note the cases where we don't have to check, as the length in the
    file is 2 bytes long, and 65535 + the metadata length is <
    WTAP_MAX_PACKET_SIZE.
    
    Change-Id: I1e690eeee900b9aa7484dc0bd0c106dc38c77269
    Reviewed-on: https://code.wireshark.org/review/15180
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  55cc5da   Use WTAP_MAX_PACKET_SIZE as the maximum packet length.
    adds  5635d9a   Check for packets bigger than WTAP_MAX_PACKET_SIZE.


Summary of changes:
 wiretap/vwr.c |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)