File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ if(MI_DEBUG_UBSAN)
158158 if (CMAKE_BUILD_TYPE MATCHES "Debug" )
159159 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
160160 message (STATUS "Build with undefined-behavior sanitizer (MI_DEBUG_UBSAN=ON)" )
161- list (APPEND mi_cflags -fsanitize=undefined -g)
161+ list (APPEND mi_cflags -fsanitize=undefined -g -fno-sanitize-recover=undefined )
162162 list (APPEND CMAKE_EXE_LINKER_FLAGS -fsanitize=undefined)
163163 if (NOT MI_USE_CXX)
164164 message (STATUS "(switch to use C++ due to MI_DEBUG_UBSAN)" )
Original file line number Diff line number Diff line change @@ -72,6 +72,10 @@ int main(void) {
7272 CHECK_BODY ("calloc0" ,{
7373 result = (mi_usable_size (mi_calloc (0 ,1000 )) <= 16 );
7474 });
75+ CHECK_BODY ("malloc-large" ,{ // see PR #544.
76+ void * p = mi_malloc (67108872 );
77+ mi_free (p );
78+ });
7579
7680 // ---------------------------------------------------
7781 // Extended
You can’t perform that action at this time.
0 commit comments