From: Bodo Möller Date: Fri, 2 Dec 2011 12:51:41 +0000 (+0000) Subject: Resolve a stack set-up race condition (if the list of compression X-Git-Tag: OpenSSL_1_0_1-beta1~50 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9f2b453338dcbb94bc4ea4f8df27e156712b77c6;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 5bf2952399..b98e702dd1 100644 --- a/CHANGES +++ b/CHANGES @@ -245,6 +245,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)] @@ -1172,6 +1175,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(); }