Wireshark-commits: [Wireshark-commits] rev 46657: /trunk/epan/dissectors/ /trunk/epan/dissectors/:

Date: Fri, 21 Dec 2012 08:16:13 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=46657

User: guy
Date: 2012/12/21 12:16 AM

Log:
 Make some loop counters unsigned, so that we handle very large loop
 counts by trying to iterate all over the items (and, presumably, failing
 when we go past the end of the packet).
 
 When assigning to the loop count, cast the value down, to avoid implicit
 64-bit-to-32-bit conversion warnings.
 
 Write those loops as for loops - it makes it a bit clearer what's going
 on.

Directory: /trunk/epan/dissectors/
  Changes    Path            Action
  +19 -23    packet-afp.c    Modified