Index: llvm/trunk/lib/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp =================================================================== --- llvm/trunk/lib/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp +++ llvm/trunk/lib/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp @@ -15,7 +15,7 @@ if (Size > 0 && Data[0] == 'H') { if (Size > 1 && Data[1] == 'i') { if (Size > 2 && Data[2] == '!') { - size_t kSize = 0xff000000U; + size_t kSize = 0x20000000U; char *p = new char[kSize]; SinkPtr = p; delete [] p; Index: llvm/trunk/lib/Fuzzer/test/fuzzer-oom.test =================================================================== --- llvm/trunk/lib/Fuzzer/test/fuzzer-oom.test +++ llvm/trunk/lib/Fuzzer/test/fuzzer-oom.test @@ -3,8 +3,8 @@ CHECK: Test unit written to ./oom- SUMMARY: libFuzzer: out-of-memory -RUN: not LLVMFuzzer-OutOfMemorySingleLargeMallocTest 2>&1 | FileCheck %s --check-prefix=SINGLE_LARGE_MALLOC -SINGLE_LARGE_MALLOC: libFuzzer: out-of-memory (malloc(42{{.*}})) +RUN: not LLVMFuzzer-OutOfMemorySingleLargeMallocTest -rss_limit_mb=300 2>&1 | FileCheck %s --check-prefix=SINGLE_LARGE_MALLOC +SINGLE_LARGE_MALLOC: libFuzzer: out-of-memory (malloc(53{{.*}})) SINGLE_LARGE_MALLOC: in LLVMFuzzerTestOneInput # Check that -rss_limit_mb=0 means no limit.