mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Fix Linux crash
If config'd without -d (--debug), asynctest was crashing with: *** longjmp causes uninitialized stack frame *** This is because gcc will add certain checks for some functions (including longjmp). The checks assume you can only longjmp down the stack not up. However, if we are actually jumping to a different fibre then it can appear as if we are going up the stack when we are not really. This change disables the check. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
05a6347fec
commit
4abc76811a
@ -51,6 +51,14 @@
|
|||||||
* ====================================================================
|
* ====================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Without this we start getting longjmp crashes because it thinks we're jumping
|
||||||
|
* up the stack when in fact we are jumping to an entirely different stack. The
|
||||||
|
* cost of this is not having certain buffer overrun/underrun checks etc for
|
||||||
|
* this source file :-(
|
||||||
|
*/
|
||||||
|
#undef _FORTIFY_SOURCE
|
||||||
|
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
#include <openssl/async.h>
|
#include <openssl/async.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user