Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 27959: /trunk/epan/ /trunk/epan/diss

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sat, 4 Apr 2009 14:32:14 -0700

On Apr 4, 2009, at 12:34 PM, gerald@xxxxxxxxxxxxx wrote:

http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=27959

User: gerald
Date: 2009/04/04 12:34 PM

Log:
tvbuff.[ch]: Accept more size_t's.

Should people be passing sizeof's to tvb_new_subset(), tvb_new_real_data(), etc.? There's no guarantee that a C structure matches a data structure within a packet, due to padding (including padding at the end of the structure, in some compilers), etc..