• Home
  • Raw
  • Download

Lines Matching refs:EXPECT_DEATH

55   EXPECT_DEATH(exit(1), "");  in TEST()
177 EXPECT_DEATH(uaf_test<U1>(1, 0), uaf_string); in TEST()
178 EXPECT_DEATH(uaf_test<U1>(10, 0), uaf_string); in TEST()
179 EXPECT_DEATH(uaf_test<U1>(10, 10), uaf_string); in TEST()
180 EXPECT_DEATH(uaf_test<U1>(kLargeMalloc, 0), uaf_string); in TEST()
181 EXPECT_DEATH(uaf_test<U1>(kLargeMalloc, kLargeMalloc / 2), uaf_string); in TEST()
187 EXPECT_DEATH(Ident(p)[12] = 0, "WRITE of size 1[026]"); in TEST()
188 EXPECT_DEATH(Ident(p)[0] = Ident(p)[12], "READ of size 1[026]"); in TEST()
209 EXPECT_DEATH(p[0] = p[3], "READ of size 5"); in TEST()
210 EXPECT_DEATH(p[3] = p[0], "WRITE of size 5"); in TEST()
232 EXPECT_DEATH(x->bf1 = 0, "use-after-free"); in TEST()
233 EXPECT_DEATH(x->bf2 = 0, "use-after-free"); in TEST()
234 EXPECT_DEATH(x->bf3 = 0, "use-after-free"); in TEST()
235 EXPECT_DEATH(x->bf4 = 0, "use-after-free"); in TEST()
258 EXPECT_DEATH(*c = 0, kSEGVCrash); in TEST()
282 EXPECT_DEATH(*c = 0, kSEGVCrash); in TEST()
285 EXPECT_DEATH(*c = 0, kSEGVCrash); in TEST()
293 EXPECT_DEATH(Ident((char*)malloc(size))[-1] = 0, buff); in TestLargeMalloc()
306 EXPECT_DEATH(Ident((char*)malloc(n_megs << 20))[-1] = 0, in TEST()
321 EXPECT_DEATH(MemalignRun(align, size, -1), in TEST()
323 EXPECT_DEATH(MemalignRun(align, size, size + 1), in TEST()
375 EXPECT_DEATH(ptr = realloc(ptr, 77), "attempting double-free"); in TEST()
380 EXPECT_DEATH(ptr = realloc((int*)ptr + 1, 77), "attempting free.*not malloc"); in TEST()
415 EXPECT_DEATH(malloc_usable_size((void*)0x123), kMallocUsableSizeErrorMsg); in TEST()
416 EXPECT_DEATH(malloc_usable_size(array + kArraySize / 2), in TEST()
419 EXPECT_DEATH(malloc_usable_size(array), kMallocUsableSizeErrorMsg); in TEST()
433 EXPECT_DEATH(WrongFree(), ASAN_PCRE_DOTALL in TEST()
451 EXPECT_DEATH(DoubleFree(), ASAN_PCRE_DOTALL in TEST()
466 EXPECT_DEATH(A[-1] = 0, expected_death); in SizedStackTest()
467 EXPECT_DEATH(A[-5] = 0, expected_death); in SizedStackTest()
468 EXPECT_DEATH(A[kSize] = 0, expected_death); in SizedStackTest()
469 EXPECT_DEATH(A[kSize + 1] = 0, expected_death); in SizedStackTest()
470 EXPECT_DEATH(A[kSize + 5] = 0, expected_death); in SizedStackTest()
472 EXPECT_DEATH(A[kSize + 31] = 0, expected_death); in SizedStackTest()
502 EXPECT_DEATH(Ident(ZZZ)[-1] = 0, ASAN_PCRE_DOTALL "XXX.*YYY.*ZZZ"); in TEST()
533 EXPECT_DEATH(Frame3(0), "located .*in frame <.*Frame0");
536 EXPECT_DEATH(Frame3(1), "located .*in frame <.*Frame1");
539 EXPECT_DEATH(Frame3(2), "located .*in frame <.*Frame2");
542 EXPECT_DEATH(Frame3(3), "located .*in frame <.*Frame3");
703 EXPECT_DEATH(_mm_store_si128((__m128i*)p, value_wide), in TEST()
705 EXPECT_DEATH(_mm_store_si128((__m128i*)p, value_wide), in TEST()
707 EXPECT_DEATH(_mm_store_si128((__m128i*)p, value_wide), in TEST()
783 EXPECT_DEATH(READ_N_BYTES, \
808 EXPECT_DEATH(memset(s + size - 1, 0, 2), RightOOBWriteMessage(0)); in TEST()
851 EXPECT_DEATH(LargeFunction(true), expected_warning); in TEST()
859 EXPECT_DEATH(*a = 1, "free_ccc.*free_bbb.*free_aaa.*" in TEST()
905 EXPECT_DEATH(ThreadedTestSpawn(), in TEST()
917 EXPECT_DEATH(ThreadedTestSpawn(), in ThreadedTestFunc()
948 EXPECT_DEATH(*addr = 1, "AddressSanitizer: SEGV on unknown"); in TEST()
962 EXPECT_DEATH(UseThenFreeThenUse(), "freed by thread"); in TEST()
987 EXPECT_DEATH(glob5[Ident(5)] = 0, in TEST()
989 EXPECT_DEATH(glob5[Ident(5+6)] = 0, in TEST()
994 EXPECT_DEATH(static110[Ident(110)] = 0, in TEST()
996 EXPECT_DEATH(static110[Ident(110+7)] = 0, in TEST()
1001 EXPECT_DEATH(func_static15[Ident(15)] = 0, in TEST()
1003 EXPECT_DEATH(func_static15[Ident(15 + 9)] = 0, in TEST()
1012 EXPECT_DEATH(fs2[Ident(-1)] = 0, "is located.*of global variable"); in TEST()
1014 EXPECT_DEATH(Ident(Ident(ConstGlob)[8]), in TEST()
1016 EXPECT_DEATH(Ident(Ident(StaticConstGlob)[5]), in TEST()
1026 EXPECT_DEATH(Ident(p[15]), "is ascii string 'FOOBAR123'"); in TEST()
1033 EXPECT_DEATH(Ident(p[15]), "zoo.*asan_test."); in TEST()
1048 EXPECT_DEATH(*p = 1, "AddressSanitizer: stack-use-after-return"); in TEST()
1049 EXPECT_DEATH(*p = 1, "is located.*in frame .*ReturnsPointerToALocal"); in TEST()
1170 EXPECT_DEATH(free(Ident(new int)), in TEST()
1172 EXPECT_DEATH(free(Ident(new int[2])), in TEST()
1174 EXPECT_DEATH(delete (Ident(new int[2])), in TEST()
1176 EXPECT_DEATH(delete (Ident((int*)malloc(2 * sizeof(int)))), in TEST()
1178 EXPECT_DEATH(delete [] (Ident(new int)), in TEST()
1180 EXPECT_DEATH(delete [] (Ident((int*)malloc(2 * sizeof(int)))), in TEST()
1264 EXPECT_DEATH(x[Ident(8192)] = 0, "AddressSanitizer: heap-buffer-overflow"); in TEST()
1283 EXPECT_DEATH( in TEST()
1286 EXPECT_DEATH( in TEST()
1315 EXPECT_DEATH(snprintf_l(buff, 10, in TEST()
1318 EXPECT_DEATH(vsnprintf_l_wrapper(buff, 10, in TEST()