Re: Need help with dns_query patch

From: Duane Wessels <wessels@dont-contact.us>
Date: Thu, 14 Jul 2005 09:52:59 -0600 (MDT)

On Wed, 13 Jul 2005, Luigi Gangitano wrote:

> Hi,
> I packaged an update squid 2.4.STABLE6 for Debian woody with the
> backported squid-2.5.STABLE9-dns_query from RedHat RHSA-2005-489, which
> is quite straight.
>
> With this patch squid fails[1] with
>
> rfc1035.c:410: rfc1035RRUnpack: Assertion `(*off) <= sz' failed
>
> which can be reproduced accessing
>
> http://62.26.121.2:80/dat/bgf/trpix.gif
>
> This seems to happen on SuSE squid-2.5.STABLE1[2] too.
>
> I cannot understand the RFC1035 code enough to debug it, can you please
> help?

Hi Luigi,

I can (mostly) understand the RFC1035 code, but I cannot reproduce this
bug. Can you reproduce it?

If you can get a core file and stack trace that would be helpful.
Also if you know anything about the type of nameserver that Squid
is using in this case (BIND, dnscache, etc)?

Since the URL contains an IP address, Squid should not issue
a name-to-address DNS query. Perhaps Squid is configured to make
address-to-name (PTR) queries and this is why the rfc1035.c code
gets called for this request.

Duane W.
Received on Thu Jul 14 2005 - 09:52:59 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:04 MDT