Ethereal-dev: Re: [Ethereal-dev] Ethereal 0.9.1 segfault during filtering (w/gdb backtrace)

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

From: "Ronnie Sahlberg" <sahlberg@xxxxxxxxxxxxxxxx>
Date: Sat, 9 Feb 2002 09:47:04 +1100
Hi,

try this small patch for mailslot
it applies to current cvs

----- Original Message -----
From: "Gilbert Ramirez"
To: "Erik Inge Bols�"
Sent: Saturday, February 09, 2002 4:37 AM
Subject: Re: [Ethereal-dev] Ethereal 0.9.1 segfault during filtering (w/gdb
backtrace)


> On Fri, 08 Feb 2002 08:55:51 Erik Inge Bols� wrote:
> >
> > #0  0x403e99f1 in __kill () from /lib/libc.so.6
> > #1  0x403e96d4 in raise (sig=6) at ../sysdeps/posix/raise.c:27
> > #2  0x403eae31 in abort () at ../sysdeps/generic/abort.c:88
> > #3  0x40290bfe in g_logv () at eval.c:88
> > #4  0x40290cb2 in g_log () at eval.c:88
> > #5  0x81d2bf2 in alloc_field_info (tree=0x847a514, hfindex=3937,
tvb=0x0,
> > start=0, length=-1)
> >     at proto.c:1613
> > #6  0x81d16ca in proto_tree_add_item (tree=0x847a514, hfindex=3937,
> > tvb=0x0, start=0, length=-1,
> >     little_endian=0) at proto.c:534
> > #7  0x8144516 in dissect_mailslot_smb (mshdr_tvb=0x0, setup_tvb=0x0,
> > tvb=0x84753d0, mailslot=0x0,
> >     pinfo=0xa056da8, parent_tree=0x847a514) at packet-smb-mailslot.c:134
> > #8  0x8141287 in dissect_transaction_response (tvb=0x8475368,
> > pinfo=0xa056da8, tree=0xbbc55fc, offset=32,
> >     smb_tree=0xbbc5598) at packet-smb.c:11595
>
>
> Thanks. Apparently the comment before line 11595 in packet-smb.c is wrong.
>
>                         case TRANSACTION_MAILSLOT:
>                                 /* This one should be safe to call
>                                    even if s_tvb and sp_tvb is NULL
>                                 */
>                                 if(d_tvb){
>                                         dissected_trans =
dissect_mailslot_smb(
>                                                 sp_tvb, s_tvb, d_tvb,
NULL, pinfo,
>                                                 top_tree);
>                                 }
>
> --gilbert
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev

Attachment: mailslot.diff
Description: Binary data