Core: Restructure sanitizers
This commit is contained in:
parent
77579f93e6
commit
beda8dd027
11 changed files with 46 additions and 42 deletions
|
|
@ -38,7 +38,7 @@
|
|||
#include <clocale>
|
||||
#include <cstdlib>
|
||||
|
||||
#if defined(SANITIZERS_ENABLED)
|
||||
#if defined(ASAN_ENABLED)
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(SANITIZERS_ENABLED)
|
||||
#if defined(ASAN_ENABLED)
|
||||
// Note: Set stack size to be at least 30 MB (vs 8 MB default) to avoid overflow, address sanitizer can increase stack usage up to 3 times.
|
||||
struct rlimit stack_lim = { 0x1E00000, 0x1E00000 };
|
||||
setrlimit(RLIMIT_STACK, &stack_lim);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue