Wireshark-commits: [Wireshark-commits] master-2.4 9cfe06c: Don't check the CRC if the message isn't

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

Commits:

9cfe06c 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>
    (cherry picked from commit 00f51fef21288100ee5b47aa51610533966de35a)
    Reviewed-on: https://code.wireshark.org/review/27932
    

Actions performed:

    from  2e0827c   ISMP: fix tuple decoding
    adds  9cfe06c   Don't check the CRC if the message isn't big enough to have a CRC.


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