Wireshark-dev: Re: [Wireshark-dev] Frame Data Buffer Allocation

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 5 Mar 2018 11:29:26 -0800
On Mar 5, 2018, at 2:16 AM, Paul Offord <Paul.Offord@xxxxxxxxxxxx> wrote:
 
> I’m not sure what I am supposed to do at that point.  Should my block handler just free the 2KB and then g_malloc a block of a suitable size?

No, you're supposed to do what every capture file reader does, and grow the buffer to the required size, using ws_buffer_assure_space().