From: Bodo Möller Date: Fri, 2 Dec 2011 12:52:00 +0000 (+0000) Subject: Resolve a stack set-up race condition (if the list of compression X-Git-Tag: master-post-reformat~2062 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=19b0d0e75b1ac7ea177d38aba4ba331ba9c93653;p=oweals%2Fopenssl.git Resolve a stack set-up race condition (if the list of compression methods isn't presorted, it will be sorted on first read). Submitted by: Adam Langley --- diff --git a/CHANGES b/CHANGES index ab83fa21d2..a453a7bf8d 100644 --- a/CHANGES +++ b/CHANGES @@ -487,6 +487,9 @@ Changes between 1.0.0e and 1.0.0f [xx XXX xxxx] + *) Fix ssl_ciph.c set-up race. + [Adam Langley (Google)] + *) Fix spurious failures in ecdsatest.c. [Emilia Käsper (Google)] @@ -1414,6 +1417,9 @@ Changes between 0.9.8r and 0.9.8s [xx XXX xxxx] + *) Fix ssl_ciph.c set-up race. + [Adam Langley (Google)] + *) Fix spurious failures in ecdsatest.c. [Emilia Käsper (Google)] diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index c03f029748..ac643c928c 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -470,6 +470,7 @@ static void load_builtin_compressions(void) sk_SSL_COMP_push(ssl_comp_methods,comp); } } + sk_SSL_COMP_sort(ssl_comp_methods); } MemCheck_on(); }