Ethereal-dev: Re: [ethereal-dev] SIGSEGV vb_decrement_usage_count (tvb=0x0, count=1) at tvbuff

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Thu, 14 Sep 2000 14:43:54 -0400
On Thu, Sep 14, 2000 at 07:14:19PM +0200, Florian Lohoff wrote:
> On Thu, Sep 14, 2000 at 12:06:15PM -0400, Gilbert Ramirez wrote:
> > On Thu, Sep 14, 2000 at 02:58:59PM +0200, Florian Lohoff wrote:
> > > 
> > > I dont think the easy fix of
> > > 
> > > if (tvbuff == NULL) 
> > > 	return(0);
> > > 
> > > is correct and only considered a workaround for a bug i am currently
> > > unable to diagnose.
> > 
> > Attached is the fix. Thanks.
> > 
> > BTW, what is creating these Ethernet packets? The Ethernet (802.3) length
> > is the wrong value; it should be the length of the payload, not the
> > entire packet. (that is, it should not include the ethernet header length).
> 
> Thanks - That works - BTW: Instead of not only prevent sigsegv
> shouldnt it show that the value is wrong in the packet tree ?

Yes, it should. I'll look into changing it.

thanks,

--gilbert