Wireshark-commits: [Wireshark-commits] master-2.2 173be1a: imap: Give correct lineend to get_token_

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 9 Mar 2017 09:13:54 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=173be1a3b4e7d783dd5db27a41782dcf7ac4a271
Submitter: Stig Bjørlykke (stig@xxxxxxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark

Commits:

173be1a by Stig Bjørlykke (stig@xxxxxxxxxxxxx):

    imap: Give correct lineend to get_token_len()
    
    The return value from get_token_len() is the token length, but the
    returned next_token can have a offset more than token length because
    it also skip trailing blanks.  Ensure we always give correct lineend.
    
    Bug: 13466
    Change-Id: I88a11b9bce02999fcf87c0d7542e56fa90aae5a0
    Reviewed-on: https://code.wireshark.org/review/20451
    Petri-Dish: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    (cherry picked from commit eb046064ff0f064896ad60508876b8a764fbbca9)
    Reviewed-on: https://code.wireshark.org/review/20457
    

Actions performed:

    from  7ccb41e   http: Check for valid tcpinfo pointer
    adds  173be1a   imap: Give correct lineend to get_token_len()


Summary of changes:
 epan/dissectors/packet-imap.c |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)