Subject: Re: Re-entrancy problems

Re: Re-entrancy problems

From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2006-06-09

On Thu, 8 Jun 2006, William Ahern wrote:

> I'm not sure if "re-entrancy" is the right term, but there is a critical
> issue in Ares. Maybe it's been discussed before.
>
> If a user calls ares_destroy() from a callback, then the library will access
> invalid memory as it unwinds. One instance is in end_query in
> ares_process.c.

Why exactly is it a good idea to even allow this?

--
   c-ares -- my preferred DNS asynch resolver library
Received on Fri Jun 9 10:03:03 2006