ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [PATCH][UPDATE] ptvcursor : one step further?

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sun, 11 Mar 2007 13:33:51 -0700
Guy Harris wrote:

So, no, I don't see any reason not to implement ep_realloc().

...unless it's impossible for ep_realloc() to find out the *existing* size of the object being reallocated (malloc()/realloc() tend to attach a header before the chunk of memory being allocated, so free() knows how much to free, but, as there's no ep_free(), I don't think ep_malloc() attaches such a header).