|
Scott Talbert |
b0dc30 |
commit 34650cd9ea2f7e4aa1e61b84ecf9913b87870680
|
|
Scott Talbert |
b0dc30 |
Author: Tom Hughes <tom@compton.nu>
|
|
Scott Talbert |
b0dc30 |
Date: Fri Feb 19 10:45:49 2021 +0000
|
|
Scott Talbert |
b0dc30 |
|
|
Scott Talbert |
b0dc30 |
Patch for non-constant SIGSTKSZ
|
|
Scott Talbert |
b0dc30 |
|
|
Scott Talbert |
b0dc30 |
diff --git a/include/internal/catch_fatal_condition.hpp b/include/internal/catch_fatal_condition.hpp
|
|
Scott Talbert |
b0dc30 |
index 1dcd545d..f7d9e10d 100644
|
|
Scott Talbert |
b0dc30 |
--- a/3rdparty/catch/include/internal/catch_fatal_condition.hpp
|
|
Scott Talbert |
b0dc30 |
+++ b/3rdparty/catch/include/internal/catch_fatal_condition.hpp
|
|
Scott Talbert |
b0dc30 |
@@ -136,7 +136,7 @@ namespace Catch {
|
|
Scott Talbert |
b0dc30 |
static bool isSet;
|
|
Scott Talbert |
b0dc30 |
static struct sigaction oldSigActions [sizeof(signalDefs)/sizeof(SignalDefs)];
|
|
Scott Talbert |
b0dc30 |
static stack_t oldSigStack;
|
|
Scott Talbert |
b0dc30 |
- static char altStackMem[SIGSTKSZ];
|
|
Scott Talbert |
b0dc30 |
+ static char altStackMem[32768];
|
|
Scott Talbert |
b0dc30 |
|
|
Scott Talbert |
b0dc30 |
static void handleSignal( int sig ) {
|
|
Scott Talbert |
b0dc30 |
std::string name = "<unknown signal>";
|
|
Scott Talbert |
b0dc30 |
@@ -156,7 +156,7 @@ namespace Catch {
|
|
Scott Talbert |
b0dc30 |
isSet = true;
|
|
Scott Talbert |
b0dc30 |
stack_t sigStack;
|
|
Scott Talbert |
b0dc30 |
sigStack.ss_sp = altStackMem;
|
|
Scott Talbert |
b0dc30 |
- sigStack.ss_size = SIGSTKSZ;
|
|
Scott Talbert |
b0dc30 |
+ sigStack.ss_size = 32768;
|
|
Scott Talbert |
b0dc30 |
sigStack.ss_flags = 0;
|
|
Scott Talbert |
b0dc30 |
sigaltstack(&sigStack, &oldSigStack);
|
|
Scott Talbert |
b0dc30 |
struct sigaction sa = { 0 };
|
|
Scott Talbert |
b0dc30 |
@@ -188,7 +188,7 @@ namespace Catch {
|
|
Scott Talbert |
b0dc30 |
bool FatalConditionHandler::isSet = false;
|
|
Scott Talbert |
b0dc30 |
struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {};
|
|
Scott Talbert |
b0dc30 |
stack_t FatalConditionHandler::oldSigStack = {};
|
|
Scott Talbert |
b0dc30 |
- char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
|
|
Scott Talbert |
b0dc30 |
+ char FatalConditionHandler::altStackMem[32768] = {};
|
|
Scott Talbert |
b0dc30 |
|
|
Scott Talbert |
b0dc30 |
|
|
Scott Talbert |
b0dc30 |
} // namespace Catch
|
|
Scott Talbert |
b0dc30 |
diff --git a/single_include/catch.hpp b/single_include/catch.hpp
|
|
Scott Talbert |
b0dc30 |
index fdb046fe..d64fd1a5 100644
|
|
Scott Talbert |
b0dc30 |
--- a/3rdparty/catch/single_include/catch.hpp
|
|
Scott Talbert |
b0dc30 |
+++ b/3rdparty/catch/single_include/catch.hpp
|
|
Scott Talbert |
b0dc30 |
@@ -6540,7 +6540,7 @@ namespace Catch {
|
|
Scott Talbert |
b0dc30 |
static bool isSet;
|
|
Scott Talbert |
b0dc30 |
static struct sigaction oldSigActions [sizeof(signalDefs)/sizeof(SignalDefs)];
|
|
Scott Talbert |
b0dc30 |
static stack_t oldSigStack;
|
|
Scott Talbert |
b0dc30 |
- static char altStackMem[SIGSTKSZ];
|
|
Scott Talbert |
b0dc30 |
+ static char altStackMem[32768];
|
|
Scott Talbert |
b0dc30 |
|
|
Scott Talbert |
b0dc30 |
static void handleSignal( int sig ) {
|
|
Scott Talbert |
b0dc30 |
std::string name = "<unknown signal>";
|
|
Scott Talbert |
b0dc30 |
@@ -6560,7 +6560,7 @@ namespace Catch {
|
|
Scott Talbert |
b0dc30 |
isSet = true;
|
|
Scott Talbert |
b0dc30 |
stack_t sigStack;
|
|
Scott Talbert |
b0dc30 |
sigStack.ss_sp = altStackMem;
|
|
Scott Talbert |
b0dc30 |
- sigStack.ss_size = SIGSTKSZ;
|
|
Scott Talbert |
b0dc30 |
+ sigStack.ss_size = 32768;
|
|
Scott Talbert |
b0dc30 |
sigStack.ss_flags = 0;
|
|
Scott Talbert |
b0dc30 |
sigaltstack(&sigStack, &oldSigStack);
|
|
Scott Talbert |
b0dc30 |
struct sigaction sa = { 0 };
|
|
Scott Talbert |
b0dc30 |
@@ -6591,7 +6591,7 @@ namespace Catch {
|
|
Scott Talbert |
b0dc30 |
bool FatalConditionHandler::isSet = false;
|
|
Scott Talbert |
b0dc30 |
struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {};
|
|
Scott Talbert |
b0dc30 |
stack_t FatalConditionHandler::oldSigStack = {};
|
|
Scott Talbert |
b0dc30 |
- char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
|
|
Scott Talbert |
b0dc30 |
+ char FatalConditionHandler::altStackMem[32768] = {};
|
|
Scott Talbert |
b0dc30 |
|
|
Scott Talbert |
b0dc30 |
} // namespace Catch
|
|
Scott Talbert |
b0dc30 |
|