Lines Matching defs:AddressSanitizer

9 // This file is a part of AddressSanitizer, an address sanity checker.
60 TEST(AddressSanitizer, HasFeatureAddressSanitizerTest) {
71 TEST(AddressSanitizer, SimpleDeathTest) {
75 TEST(AddressSanitizer, VariousMallocsTest) {
110 TEST(AddressSanitizer, CallocTest) {
116 TEST(AddressSanitizer, CallocReturnsZeroMem) {
140 TEST(AddressSanitizer, VallocTest) {
148 TEST(AddressSanitizer, PvallocTest) {
184 TEST(AddressSanitizer, DISABLED_TSDTest) {
194 TEST(AddressSanitizer, UAF_char) {
195 const char *uaf_string = "AddressSanitizer:.*heap-use-after-free";
203 TEST(AddressSanitizer, UAF_long_double) {
233 TEST(AddressSanitizer, UAF_Packed5) {
242 TEST(AddressSanitizer, IgnoreTest) {
256 TEST(AddressSanitizer, BitFieldPositiveTest) {
270 TEST(AddressSanitizer, BitFieldNegativeTest) {
280 const char kSEGVCrash[] = "AddressSanitizer: SEGV on unknown address";
284 TEST(AddressSanitizer, WildAddressTest) {
299 TEST(AddressSanitizer, SignalTest) {
328 TEST(AddressSanitizer, LargeMallocTest) {
336 TEST(AddressSanitizer, HugeMallocTest) {
341 "AddressSanitizer failed to allocate");
352 TEST(AddressSanitizer, memalign) {
375 TEST(AddressSanitizer, ManyThreadsTest) {
388 TEST(AddressSanitizer, ReallocTest) {
406 TEST(AddressSanitizer, ReallocFreedPointerTest) {
413 TEST(AddressSanitizer, ReallocInvalidPointerTest) {
419 TEST(AddressSanitizer, ZeroSizeMallocTest) {
441 "AddressSanitizer: attempting to call malloc_usable_size()";
443 TEST(AddressSanitizer, MallocUsableSizeTest) {
467 TEST(AddressSanitizer, WrongFreeTest) {
469 "ERROR: AddressSanitizer: attempting free.*not malloc"
485 TEST(AddressSanitizer, DoubleFreeTest) {
487 "ERROR: AddressSanitizer: attempting double-free"
498 const char *expected_death = "AddressSanitizer: stack-buffer-";
510 TEST(AddressSanitizer, SimpleStackTest) {
531 TEST(AddressSanitizer, ManyStackObjectsTest) {
567 TEST(AddressSanitizer, GuiltyStackFrame0Test) {
570 TEST(AddressSanitizer, GuiltyStackFrame1Test) {
573 TEST(AddressSanitizer, GuiltyStackFrame2Test) {
576 TEST(AddressSanitizer, GuiltyStackFrame3Test) {
600 TEST(AddressSanitizer, LongJmpTest) {
648 TEST(AddressSanitizer, BuiltinLongJmpTest) {
661 TEST(AddressSanitizer, UnderscopeLongJmpTest) {
670 TEST(AddressSanitizer, SigLongJmpTest) {
693 TEST(AddressSanitizer, CxxExceptionTest) {
722 TEST(AddressSanitizer, ThreadStackReuseTest) {
733 TEST(AddressSanitizer, Store128Test) {
741 "AddressSanitizer: heap-buffer-overflow");
822 "AddressSanitizer: heap-buffer-overflow" \
827 TEST(AddressSanitizer, pread) {
831 TEST(AddressSanitizer, pread64) {
835 TEST(AddressSanitizer, read) {
842 TEST(AddressSanitizer, DISABLED_MemIntrinsicUnalignedAccessTest) {
881 TEST(AddressSanitizer, DISABLED_LargeFunctionSymbolizeTest) {
889 TEST(AddressSanitizer, DISABLED_MallocFreeUnwindAndSymbolizeTest) {
938 TEST(AddressSanitizer, ThreadedTest) {
963 TEST(AddressSanitizer, ThreadNamesTest) {
972 TEST(AddressSanitizer, ShadowGapTest) {
984 EXPECT_DEATH(*addr = 1, "AddressSanitizer: (SEGV|BUS) on unknown");
997 TEST(AddressSanitizer, UseThenFreeThenUseTest) {
1001 TEST(AddressSanitizer, StrDupTest) {
1010 TEST(AddressSanitizer, GlobalTest) {
1059 TEST(AddressSanitizer, GlobalStringConstTest) {
1065 TEST(AddressSanitizer, FileNameInGlobalReportTest) {
1078 TEST(AddressSanitizer, LocalReferenceReturnTest) {
1084 EXPECT_DEATH(*p = 1, "AddressSanitizer: stack-use-after-return");
1114 TEST(AddressSanitizer, StressStackReuseTest) {
1118 TEST(AddressSanitizer, ThreadedStressStackReuseTest) {
1139 TEST(AddressSanitizer, PthreadExitTest) {
1157 TEST(AddressSanitizer, DISABLED_StressStackReuseAndExceptionsTest) {
1168 TEST(AddressSanitizer, MlockTest) {
1182 TEST(AddressSanitizer, LargeStructCopyTest) {
1194 TEST(AddressSanitizer, AttributeNoSanitizeAddressTest) {
1208 return std::string("AddressSanitizer: alloc-dealloc-mismatch \\(") + str;
1213 ")|(AddressSanitizer: new-delete-type-mismatch)";
1216 TEST(AddressSanitizer, AllocDeallocMismatch) {
1235 TEST(AddressSanitizer, DISABLED_DemoThreadedTest) {
1245 TEST(AddressSanitizer, DISABLED_DemoStackTest) {
1249 TEST(AddressSanitizer, DISABLED_DemoThreadStackTest) {
1255 TEST(AddressSanitizer, DISABLED_DemoUAFLowIn) {
1258 TEST(AddressSanitizer, DISABLED_DemoUAFLowLeft) {
1261 TEST(AddressSanitizer, DISABLED_DemoUAFLowRight) {
1265 TEST(AddressSanitizer, DISABLED_DemoUAFHigh) {
1269 TEST(AddressSanitizer, DISABLED_DemoOOM) {
1274 TEST(AddressSanitizer, DISABLED_DemoDoubleFreeTest) {
1278 TEST(AddressSanitizer, DISABLED_DemoNullDerefTest) {
1283 TEST(AddressSanitizer, DISABLED_DemoFunctionStaticTest) {
1295 TEST(AddressSanitizer, DISABLED_DemoTooMuchMemoryTest) {
1308 TEST(AddressSanitizer, BufferOverflowAfterManyFrees) {
1313 EXPECT_DEATH(x[Ident(8192)] = 0, "AddressSanitizer: heap-buffer-overflow");
1322 TEST(AddressSanitizer, LongDoubleNegativeTest) {
1330 TEST(AddressSanitizer, pthread_getschedparam) {
1335 "AddressSanitizer: stack-buffer-.*flow");
1338 "AddressSanitizer: stack-buffer-.*flow");
1354 TEST(AddressSanitizer, snprintf_l) {
1366 "AddressSanitizer: stack-buffer-overflow");
1369 "AddressSanitizer: stack-buffer-overflow");