Ethereal-dev: Re: [ethereal-dev] DNS dissector and infinite-loop

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Wed, 6 Oct 1999 22:46:15 -0700
> It seems to work, but one time when I was using it to read that
> 10-packet file I sent out earlier, it segfaulted. A quick jump into
> gdb showed a long stack of gtk function calls. This segfault occured
> when I was highlighting and opening and closing subtrees in these
> bad DNS packets.

Could be - "get_dns_name()" doesn't do any checks to make sure the stuff
it's looking at is inside the packet.  Unfortunately, to do that takes a
bit more work, as offsets aren't passed into a number of the DNS
dissection routines; I'm looking at that.