diff options
author | Arran Cudbard-Bell <a.cudbardb@freeradius.org> | 2022-02-23 13:56:36 -0500 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-03-10 13:54:07 +0000 |
commit | 83c48d96ff24728d94e0890f320b0d1220d9cba3 (patch) | |
tree | d98446c6fa99f022e36e37037fce83330ec29f44 /crypto/async | |
parent | 96a77661723b4ba8fe9eb7cef009d735c97e2aa6 (diff) |
async_posix: raise a memory allocation error if we fail to allocate stack memory
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17762)
Diffstat (limited to 'crypto/async')
-rw-r--r-- | crypto/async/arch/async_posix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/async/arch/async_posix.c b/crypto/async/arch/async_posix.c index e107e09a35..a0ac97783f 100644 --- a/crypto/async/arch/async_posix.c +++ b/crypto/async/arch/async_posix.c @@ -14,6 +14,7 @@ # include <stddef.h> # include <unistd.h> +# include <openssl/err.h> #define STACKSIZE 32768 @@ -45,6 +46,7 @@ int async_fibre_makecontext(async_fibre *fibre) makecontext(&fibre->fibre, async_start_func, 0); return 1; } + ERR_raise(ERR_LIB_ASYNC, ERR_R_MALLOC_FAILURE); } else { fibre->fibre.uc_stack.ss_sp = NULL; } |