Wireshark-commits: [Wireshark-commits] rev 50537: /trunk/epan/ /trunk/epan/: tvbuff.c

Date: Fri, 12 Jul 2013 17:53:51 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=50537

User: darkjames
Date: 2013/07/12 10:53 AM

Log:
 fix subset tvb: we want to do operation on backing tvb on position: abs_offset + subset_offset, abs_offset - subset_offset makes no sense.
 
 Right now it doesn't really matter, cause tvb subsets always have real_data.
 
 Without fix, and with small modification in ensure_contigous_no_expcetion() to first check for ->tvb_get_ptr() and later real_data
 epan doesn't work and it flood console with warnings like:
 ** (process): WARNING **: Dissector bug, protocol IPv4, in packet 3823: tvbuff.c:976: failed assertion "exception > 0"

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