cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] hostip: Fix signal race in Curl_resolv_timeout.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 14 Mar 2015 18:25:54 +0100 (CET)

On Sat, 14 Mar 2015, Tobias Stoeckmann wrote:

> The signal handler is installed before curl_jmpenv is initialized. This
> means that an already installed alarm timer could trigger the newly
> installed signal handler, leading to undefined behavior when it accesses the
> uninitialized curl_jmpenv.

Thanks a lot. Lovely catch and awesome explanation. Merged and pushed now!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-14