Ethereal-dev: Re: [Ethereal-dev] Crash after applying a filter

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: Wed, 24 Jan 2001 11:02:57 -0500
On Wed, Jan 24, 2001 at 03:33:53PM +0100, andreas.sikkema@xxxxxxxxxxx wrote:
> Hi
> 
> Ethereal 0.8.15 with my H.323 patch (on WIN32) crashes after applying a filter:
> 
> format_text(const unsigned char * 0x008a5000, int 59052) line 175 + 3 bytes
> dissect_transact2_smb(const unsigned char * 0x00891144, int 38353, _frame_data * 0x010e1c98, _GNode * 0x010bfce0, _GNode * 0x010bfe0c, smb_info {...}, int 35, int 58, int 0, int 0) line 9464 + 32 bytes

The circle is now complete. It was a problem in the SMB dissector, only
a few hundred lines above this one,  which provoked me into implementing
tvbuffs (see http://www.ethereal.com/lists/ethereal-dev/200004/msg00295.html ),
but the SMB dissector is one of the last ones to be converted to tvbuffs
because it is so big.

Just above line 9464 in packet-smb.c, where the format_text() function is
called, can you add some printf()'s to print out the values
of offset, SMB_offset, ParameterOffset, and ParameterCount? Then
run "tethereal -V -r filename" and send those 4 values back to us?

thanks,

--gilbert