Wireshark-commits: [Wireshark-commits] master 5d99feb: S7comm: fix range check to prevent infinite

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 18 Feb 2018 02:21:35 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5d99febe66e96b55a1defa58a906be254bad3a51
Submitter: Michael Mann (mmann78@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

5d99feb by Pascal Quantin (pascal.quantin@xxxxxxxxx):

    S7comm: fix range check to prevent infinite loop when upper bound is 255
    
    While we are at it, fix identification of not last element in a few
    places
    
    Bug: 14423
    Change-Id: I568530949d09ddfd8c5c58d24050dfed32ce10f5
    Reviewed-on: https://code.wireshark.org/review/25851
    Reviewed-by: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Petri-Dish: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    

Actions performed:

    from  cae52d2   Don't gratuitously cast away constness.
    adds  5d99feb   S7comm: fix range check to prevent infinite loop when upper bound is 255


Summary of changes:
 epan/dissectors/packet-s7comm.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)