From: Arran Cudbard-Bell Date: Wed, 23 Feb 2022 18:56:36 +0000 (-0500) Subject: async_posix: raise a memory allocation error if we fail to allocate stack memory X-Git-Tag: openssl-3.2.0-alpha1~2873 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83c48d96ff24728d94e0890f320b0d1220d9cba3;p=thirdparty%2Fopenssl.git async_posix: raise a memory allocation error if we fail to allocate stack memory Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/17762) --- diff --git a/crypto/async/arch/async_posix.c b/crypto/async/arch/async_posix.c index e107e09a352..a0ac97783fa 100644 --- a/crypto/async/arch/async_posix.c +++ b/crypto/async/arch/async_posix.c @@ -14,6 +14,7 @@ # include # include +# include #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; }