Ethereal-users: Re: [Ethereal-users] Segmentation Fault in MQ dissector

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Wed, 17 Nov 2004 12:10:10 -0800
McQuiggan, Mark xt46480 wrote:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -151039328 (LWP 10660)]
0x00314726 in free () from /lib/tls/libc.so.6
(gdb) backtrace
#0  0x00314726 in free () from /lib/tls/libc.so.6
#1  0x001536c4 in g_free () from /usr/lib/libglib-2.0.so.0
#2  0x007d4ff4 in dissect_mq_pdu (tvb=0x8a6d2c8, pinfo=0x8a3baf8, tree=0x0)
    at packet-mq.c:2258

Handing a constant string to "free()" is generally considered a Bad Idea; unfortunately, in some cases, that's what the MQ dissector was doing. I've checked in a fix.