Wireshark-commits: [Wireshark-commits] master bc14725: [afp] improve the error handling for extende

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 23 Jun 2015 18:02:15 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=bc1472502f871d5d7d178f5588f9b5ed7a226180
Submitter: Martin Kaiser (wireshark@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

bc14725 by Martin Kaiser (wireshark@xxxxxxxxx):

    [afp] improve the error handling for extended attributes
    
    distinguish between the length field in the packet and the current item's length
    make sure that the length field fits into a gint variable
    add a cast to the return value of tvb_strsize()
    don't throw an exception manually
    
    Change-Id: I2debab778be3e34d68b1be31963d2d9260a30e0e
    Reviewed-on: https://code.wireshark.org/review/9056
    Reviewed-by: Martin Kaiser <wireshark@xxxxxxxxx>
    

Actions performed:

    from  eb321f8   Remove deprecated tvb_length from PIDL dissectors
    adds  bc14725   [afp] improve the error handling for extended attributes


Summary of changes:
 epan/dissectors/packet-afp.c |   37 ++++++++++++++++++++-----------------
 1 file changed, 20 insertions(+), 17 deletions(-)