Skip to content

Commit

Permalink
crashHandlingProviderTestCrash: Implement for other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Oct 13, 2023
1 parent 0d8853e commit 4cc7d73
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/wzcrashhandlingproviders.cpp
Expand Up @@ -475,7 +475,15 @@ bool crashHandlingProviderTestCrash()
RaiseException(0xE000DEAD, EXCEPTION_NONCONTINUABLE, 0, 0);
return false;
# else
// future todo: implement for other platforms
# if defined(WZ_CC_GNU) && !defined(WZ_CC_INTEL) && !defined(WZ_CC_CLANG) && (7 <= __GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
static void *invalid_mem = (void *)1;
memset((char *)invalid_mem, 1, 100);
# if defined(WZ_CC_GNU) && !defined(WZ_CC_INTEL) && !defined(WZ_CC_CLANG) && (7 <= __GNUC__)
# pragma GCC diagnostic pop
# endif
return false;
# endif
#else
Expand Down

0 comments on commit 4cc7d73

Please sign in to comment.