From 8deb40f9f5c03eb059123488a1e29d5495a1ffc7 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 7 Apr 2023 09:55:35 +0800 Subject: [PATCH] - change: The option "Check for stack smashing attacks (-fstack-protector)" is turned off by default in the Debug compiler set settings. --- NEWS.md | 4 ++++ RedPandaIDE/RedPandaIDE.pro | 2 +- RedPandaIDE/settings.cpp | 3 ++- Red_Panda_CPP.pro | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index 1e7e3583..8738133a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +Red Panda C++ Version 2.21 + + - change: The option "Check for stack smashing attacks (-fstack-protector)" is turned off by default in the Debug compiler set settings. + Red Panda C++ Version 2.20 - change: Remove the compiler set option "Syntax error when object larger than" diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index cdbd5981..a470276b 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -8,7 +8,7 @@ isEmpty(APP_NAME) { } isEmpty(APP_VERSION) { - APP_VERSION = 2.20 + APP_VERSION = 2.21 } contains(QMAKE_HOST.arch, x86_64):{ diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp index 2581afd9..1acfd406 100644 --- a/RedPandaIDE/settings.cpp +++ b/RedPandaIDE/settings.cpp @@ -2748,7 +2748,8 @@ static void setDebugOptions(Settings::PCompilerSet pSet, bool enableAsan = false // pSet->setCustomLinkParams("-fsanitize=address"); // pSet->setUseCustomLinkParams(true); } - pSet->setCompileOption(CC_CMD_OPT_STACK_PROTECTOR, "-strong"); + //Some windows gcc don't correctly support this + //pSet->setCompileOption(CC_CMD_OPT_STACK_PROTECTOR, "-strong"); pSet->setStaticLink(false); } diff --git a/Red_Panda_CPP.pro b/Red_Panda_CPP.pro index d01a700b..c0e0cabc 100644 --- a/Red_Panda_CPP.pro +++ b/Red_Panda_CPP.pro @@ -14,7 +14,7 @@ qsynedit.subdir = libs/qsynedit APP_NAME = RedPandaCPP -APP_VERSION = 2.20 +APP_VERSION = 2.21 # Add the dependencies so that the RedPandaIDE project can add the depended programs # into the main app bundle