Wireshark-commits: [Wireshark-commits] master 00f51fe: Don't check the CRC if the message isn't big

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 31 May 2018 17:23:41 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=00f51fef21288100ee5b47aa51610533966de35a
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

00f51fe by Guy Harris (guy@xxxxxxxxxxxx):

    Don't check the CRC if the message isn't big enough to have a CRC.
    
    We should really do a better length check.  This also suggests that we
    might be going past the length if it's too short - should we create a
    new tvbuff, with tvb_subset_length(), and dissect based on that?
    
    Bug: 14780
    Change-Id: Iaaab529f34b0168ad74c7b4f3e1b4255504c1b57
    Reviewed-on: https://code.wireshark.org/review/27930
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  64a2b41   Move make-taps and make-dissectors to tools/
    adds  00f51fe   Don't check the CRC if the message isn't big enough to have a CRC.


Summary of changes:
 plugins/epan/wimax/wimax_harq_map_decoder.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)