Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] lts-1.12.1 1f21835: Use the reported length where appropriat

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 22 Sep 2015 20:39:27 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=1f21835ea605c68089e7066cf2956c166a2abbfc
Submitter: Balint Reczey (balint@xxxxxxxxxxxxxxx)
Changed: branch: lts-1.12.1
Repository: wireshark

Commits:

1f21835 by Guy Harris (guy@xxxxxxxxxxxx):

    Use the reported length where appropriate.
    
    Use the captured length to know how much data to decrypt.  Use the
    reported length to determine whether we have a null payload and to se
    the reported length of the decrypted payload and of tvbuffs for the
    un-decrypted payload.
    
    Bug: 11389
    Change-Id: I8670a5eb5f5a7df134c09ddb3c9dfd611ffa839e
    Reviewed-on: https://code.wireshark.org/review/9956
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 76d50a7f46df6cd74c38f664e778d8563e4cab68)
    Reviewed-on: https://code.wireshark.org/review/10616
    Reviewed-by: Balint Reczey <balint@xxxxxxxxxxxxxxx>
    

Actions performed:

    from  fb35776   use the captured length as payload length for zigbee decryption
    adds  1f21835   Use the reported length where appropriate.


Summary of changes:
 epan/dissectors/packet-zbee-security.c |   26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)