Wireshark-commits: [Wireshark-commits] master-2.4 9ea8145: Give details for all cases where the off
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 03 Jun 2018 03:05:03 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=9ea8145e80ecca952890f353a0c658fb028c2aa8
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.4
Repository: wireshark

Commits:

9ea8145 by Guy Harris (guy@xxxxxxxxxxxx):

    Give details for all cases where the offset overflows.
    
    It *does* appear to be overflowing, but it's not obvious how that would
    happen...
    
    ...unless tvb_find_guint8(), called from tvb_strsize(), somehow doesn't
    stop at the end of the tvbuff, keeps scanning until it finally finds a
    '\0', and that somehow causes a problem.
    
    Change-Id: If292786904e7ab6e3db483cd4084fd4264f20b58
    Reviewed-on: https://code.wireshark.org/review/27974
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  74b1961   Print the dissector bug message if WIRESHARK_ABORT_ON_DISSECTOR_BUG is set.
    adds  9ea8145   Give details for all cases where the offset overflows.


Summary of changes:
 epan/dissectors/packet-mmse.c | 204 +++++++++++++++++++++++++++++++++++-------
 1 file changed, 170 insertions(+), 34 deletions(-)