mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +03:00
MDEV-34388: Stack overflow on Alpine Linux (postfix) - sanitizers
Remove stack limits for sanitizers. Other tests cover them.
This commit is contained in:
committed by
Sergei Golubchik
parent
fe6a5c2200
commit
f533333f82
@@ -19,12 +19,6 @@ IF(MSVC OR MYSQL_MAINTAINER_MODE STREQUAL "NO")
|
|||||||
RETURN()
|
RETURN()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF((WITH_MSAN OR WITH_ASAN) AND CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
||||||
SET(STACK_FRAME_LIMIT 65536)
|
|
||||||
ELSE()
|
|
||||||
SET(STACK_FRAME_LIMIT 16384)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# Common warning flags for GCC, G++, Clang and Clang++
|
# Common warning flags for GCC, G++, Clang and Clang++
|
||||||
SET(MY_WARNING_FLAGS
|
SET(MY_WARNING_FLAGS
|
||||||
-Wall
|
-Wall
|
||||||
@@ -47,9 +41,12 @@ SET(MY_WARNING_FLAGS
|
|||||||
-Wvla
|
-Wvla
|
||||||
-Wwrite-strings
|
-Wwrite-strings
|
||||||
-Wcast-function-type-strict
|
-Wcast-function-type-strict
|
||||||
-Wframe-larger-than=${STACK_FRAME_LIMIT}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF(NOT (WITH_MSAN OR WITH_ASAN OR WITH_UBSAN))
|
||||||
|
SET(MY_WARNING_FLAGS ${MY_WARNING_FLAGS} -Wframe-larger-than=16384)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
# Warning flags that are in testing before moving
|
# Warning flags that are in testing before moving
|
||||||
# to MY_WARNING_FLAGS if stable.
|
# to MY_WARNING_FLAGS if stable.
|
||||||
SET(MY_WARNING_FLAGS_NON_FATAL
|
SET(MY_WARNING_FLAGS_NON_FATAL
|
||||||
|
Reference in New Issue
Block a user