Wireshark-dev: Re: [Wireshark-dev] Memory corrupted
From: Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx>
Date: Wed, 14 Mar 2012 21:15:07 +0100
On Wed, Mar 14, 2012 at 09:01:07PM +0100, Akos Vandra wrote:
> Figured it out, however this is a bug in wireshark, I suppose.
> A call to ep_alloc(0) was the culprit. IMHO that should not be a
> problem, as I expect it to work as malloc works, and malloc should
> handle a 0 size, as stated in the C standard.

In which way? It should return NULL (glib-like) or some not-NULL pointer (glibc-like)?
AFAIR in C standard it's UB.

But the problem is that you are probably writting to *ep_alloc(0),
please check.

Cheers,
 Jakub.