Wireshark-commits: [Wireshark-commits] master-2.6 eb981cc: afs: correctly calulate padding for stri
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=eb981cc4d6bb17f960e5dbb4ff0c17d6b6c7a577
Submitter: "Pascal Quantin <pascal@xxxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark
Commits:
eb981cc 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>
(cherry picked from commit 77d2bf81a75f682cf09f07ac02b2f4cb92324a59)
Reviewed-on: https://code.wireshark.org/review/36317
Actions performed:
from c450057 Diameter 3GPP: fix dissection of MBMS-Bearer-Event AVP
add eb981cc afs: correctly calulate padding for strings
Summary of changes:
epan/dissectors/packet-afs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)