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()
307 EXPECT_DEATH(Ident((char*)malloc(n_megs << 20))[-1] = 0, in TEST()
323 EXPECT_DEATH(MemalignRun(align, size, -1), in TEST()
325 EXPECT_DEATH(MemalignRun(align, size, size + 1), in TEST()
377 EXPECT_DEATH(ptr = realloc(ptr, 77), "attempting double-free"); in TEST()
382 EXPECT_DEATH(ptr = realloc((int*)ptr + 1, 77), "attempting free.*not malloc"); in TEST()
417 EXPECT_DEATH(malloc_usable_size((void*)0x123), kMallocUsableSizeErrorMsg); in TEST()
418 EXPECT_DEATH(malloc_usable_size(array + kArraySize / 2), in TEST()
421 EXPECT_DEATH(malloc_usable_size(array), kMallocUsableSizeErrorMsg); in TEST()
435 EXPECT_DEATH(WrongFree(), ASAN_PCRE_DOTALL in TEST()
453 EXPECT_DEATH(DoubleFree(), ASAN_PCRE_DOTALL in TEST()
468 EXPECT_DEATH(A[-1] = 0, expected_death); in SizedStackTest()
469 EXPECT_DEATH(A[-5] = 0, expected_death); in SizedStackTest()
470 EXPECT_DEATH(A[kSize] = 0, expected_death); in SizedStackTest()
471 EXPECT_DEATH(A[kSize + 1] = 0, expected_death); in SizedStackTest()
472 EXPECT_DEATH(A[kSize + 5] = 0, expected_death); in SizedStackTest()
474 EXPECT_DEATH(A[kSize + 31] = 0, expected_death); in SizedStackTest()
504 EXPECT_DEATH(Ident(ZZZ)[-1] = 0, ASAN_PCRE_DOTALL "XXX.*YYY.*ZZZ"); in TEST()
535 EXPECT_DEATH(Frame3(0), "located .*in frame <.*Frame0");
538 EXPECT_DEATH(Frame3(1), "located .*in frame <.*Frame1");
541 EXPECT_DEATH(Frame3(2), "located .*in frame <.*Frame2");
544 EXPECT_DEATH(Frame3(3), "located .*in frame <.*Frame3");
704 EXPECT_DEATH(_mm_store_si128((__m128i*)p, value_wide), in TEST()
706 EXPECT_DEATH(_mm_store_si128((__m128i*)p, value_wide), in TEST()
708 EXPECT_DEATH(_mm_store_si128((__m128i*)p, value_wide), in TEST()
784 EXPECT_DEATH(READ_N_BYTES, \
809 EXPECT_DEATH(memset(s + size - 1, 0, 2), RightOOBWriteMessage(0)); in TEST()
849 EXPECT_DEATH(LargeFunction(true), expected_warning); in TEST()
857 EXPECT_DEATH(*a = 1, "free_ccc.*free_bbb.*free_aaa.*" in TEST()
903 EXPECT_DEATH(ThreadedTestSpawn(), in TEST()
915 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()
1175 EXPECT_DEATH(free(Ident(new int)), in TEST()
1177 EXPECT_DEATH(free(Ident(new int[2])), in TEST()
1179 EXPECT_DEATH( in TEST()
1182 EXPECT_DEATH(delete (Ident((int *)malloc(2 * sizeof(int)))), in TEST()
1184 EXPECT_DEATH(delete [] (Ident(new int)), in TEST()
1186 EXPECT_DEATH(delete [] (Ident((int*)malloc(2 * sizeof(int)))), in TEST()
1270 EXPECT_DEATH(x[Ident(8192)] = 0, "AddressSanitizer: heap-buffer-overflow"); in TEST()
1289 EXPECT_DEATH( in TEST()
1292 EXPECT_DEATH( in TEST()
1321 EXPECT_DEATH(snprintf_l(buff, 10, in TEST()
1324 EXPECT_DEATH(vsnprintf_l_wrapper(buff, 10, in TEST()