Subject: Re: ares_parse_txt_reply's output is not usable for DNS-SD

Re: ares_parse_txt_reply's output is not usable for DNS-SD

From: Patrick Valsecchi <pvalsecc_at_cisco.com>
Date: Tue, 16 Apr 2013 11:37:24 +0200

On 04/16/2013 10:50 AM, Tommie Gannert wrote:
> 2013/4/16 Patrick Valsecchi <pvalsecc_at_cisco.com
> <mailto:pvalsecc_at_cisco.com>>
>
> Patch for that in attachment.
>
>
> Looks good, but
>
> L130 if (strptr + substr_len + 1 > abuf + alen)
>
> I think that shoulf be
>
> L130 if (strptr + substr_len + 1 > aptr + rr_len)
>
> --
> Tommie Gannert
> Software engineer, analytics and data infrastructure
> Spotify AB

Good point, thanks! Here is the patch V2.

Received on 2013-04-16