Wireshark-commits: [Wireshark-commits] master 77d2bf8: afs: correctly calulate padding for strings
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 06 Mar 2020 15:47:27 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=77d2bf81a75f682cf09f07ac02b2f4cb92324a59
Submitter: "Pascal Quantin <pascal@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

77d2bf8 by Mark Vitale (mvitale@xxxxxxxxxxxxxx):

    afs: correctly calulate padding for strings
    
    length+value strings in AFS are padded to a multiple of 4 octets.
    A bug caused the dissector to add an extra 4-octet pad when no padding
    was required.  This causes any field after the string to be
    mis-dissected, resulting in a false alarm "Malformed packet".
    
    Correct the padding logic to eliminate the false alarm.
    
    Change-Id: I2edc58f20830c2df99d87cdd7d0cbf3bc9b92991
    Reviewed-on: https://code.wireshark.org/review/36297
    Reviewed-by: Tomasz Moń <desowin@xxxxxxxxx>
    Petri-Dish: Tomasz Moń <desowin@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Pascal Quantin <pascal@xxxxxxxxxxxxx>
    

Actions performed:

    from  e8d770f   GTpv2: MM Context, handle new data.
     add  77d2bf8   afs: correctly calulate padding for strings


Summary of changes:
 epan/dissectors/packet-afs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)