Pauli 64954e2f34 Fix race condition & allow operation cache to grow.
This fixes a race condition where the index to the cache location was found
under a read lock and a later write lock set the cache entry.  The issue being
that two threads could get the same location index and then fight each other
over writing the cache entry.  The most likely outcome is a memory leak,
however it would be possible to set up an invalid cache entry.

The operation cache was a fixed sized array, once full an assertion failed.
The other fix here is to convert this to a stack.  The code is simplified and
it avoids a cache overflow condition.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14062)
2021-02-07 20:01:50 +10:00
..
2020-09-25 12:12:22 +10:00
2020-07-05 01:49:20 +02:00
2020-04-23 13:55:52 +01:00
2019-12-11 19:04:01 +01:00
2020-10-15 14:10:06 +01:00
2020-10-15 14:10:06 +01:00