Wireshark-commits: [Wireshark-commits] rev 52571: /trunk/epan/ /trunk/epan/: tvbuff.c tvbuff.h
Date: Sat, 12 Oct 2013 18:13:26 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=52571

User: cmaynard
Date: 2013/10/12 06:13 PM

Log:
 If the offset is out of bounds, have tvb_length_remaining() and tvb_reported_length_remaining() return 0 instead of -1.  This should provide a better long-term fix for bugs/problems such as seen in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9263.  In the long-run, if we like this behavior, we can change the return value to a guint as well.  Let's let it simmer for awhile first ...

Directory: /trunk/epan/
  Changes    Path          Action
  +3 -3      tvbuff.c      Modified
  +3 -4      tvbuff.h      Modified