Wireshark-dev: Re: [Wireshark-dev] [PATCH][UPDATE] ptvcursor : one step further?
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Sun, 11 Mar 2007 14:04:59 -0700
Sebastien Tandel wrote:

I've taking a look at emem.c and it clearly doesn't attach information
about the chunk of memory being allocated. Then ep_realloc may only be
the "allocate new, copy" solution.

Without that information, how do you know how much to copy (if you don't pass the old size explicitly, which would give it a different API from other realloc routines)?