Home | History | Annotate | Download | only in tests

Lines Matching refs:AddressSanitizer

10 // This file is a part of AddressSanitizer, an address sanity checker.
43 TEST(AddressSanitizer, HasFeatureAddressSanitizerTest) {
54 TEST(AddressSanitizer, SimpleDeathTest) {
58 TEST(AddressSanitizer, VariousMallocsTest) {
91 TEST(AddressSanitizer, CallocTest) {
97 TEST(AddressSanitizer, CallocReturnsZeroMem) {
121 TEST(AddressSanitizer, VallocTest) {
129 TEST(AddressSanitizer, PvallocTest) {
165 TEST(AddressSanitizer, DISABLED_TSDTest) {
175 TEST(AddressSanitizer, UAF_char) {
176 const char *uaf_string = "AddressSanitizer:.*heap-use-after-free";
184 TEST(AddressSanitizer, UAF_long_double) {
206 TEST(AddressSanitizer, UAF_Packed5) {
215 TEST(AddressSanitizer, IgnoreTest) {
229 TEST(AddressSanitizer, BitFieldPositiveTest) {
243 TEST(AddressSanitizer, BitFieldNegativeTest) {
253 const char kSEGVCrash[] = "AddressSanitizer: SEGV on unknown address";
256 TEST(AddressSanitizer, WildAddressTest) {
271 TEST(AddressSanitizer, SignalTest) {
296 TEST(AddressSanitizer, LargeMallocTest) {
303 TEST(AddressSanitizer, HugeMallocTest) {
308 "AddressSanitizer failed to allocate");
318 TEST(AddressSanitizer, memalign) {
340 TEST(AddressSanitizer, ManyThreadsTest) {
353 TEST(AddressSanitizer, ReallocTest) {
371 TEST(AddressSanitizer, ReallocFreedPointerTest) {
378 TEST(AddressSanitizer, ReallocInvalidPointerTest) {
384 TEST(AddressSanitizer, ZeroSizeMallocTest) {
406 "AddressSanitizer: attempting to call malloc_usable_size()";
408 TEST(AddressSanitizer, MallocUsableSizeTest) {
432 TEST(AddressSanitizer, WrongFreeTest) {
434 "ERROR: AddressSanitizer: attempting free.*not malloc"
450 TEST(AddressSanitizer, DoubleFreeTest) {
452 "ERROR: AddressSanitizer: attempting double-free"
463 const char *expected_death = "AddressSanitizer: stack-buffer-";
475 TEST(AddressSanitizer, SimpleStackTest) {
496 TEST(AddressSanitizer, ManyStackObjectsTest) {
532 TEST(AddressSanitizer, GuiltyStackFrame0Test) {
535 TEST(AddressSanitizer, GuiltyStackFrame1Test) {
538 TEST(AddressSanitizer, GuiltyStackFrame2Test) {
541 TEST(AddressSanitizer, GuiltyStackFrame3Test) {
565 TEST(AddressSanitizer, LongJmpTest) {
614 TEST(AddressSanitizer, BuiltinLongJmpTest) {
626 TEST(AddressSanitizer, UnderscopeLongJmpTest) {
635 TEST(AddressSanitizer, SigLongJmpTest) {
658 TEST(AddressSanitizer, CxxExceptionTest) {
686 TEST(AddressSanitizer, ThreadStackReuseTest) {
696 TEST(AddressSanitizer, Store128Test) {
704 "AddressSanitizer: heap-buffer-overflow");
785 "AddressSanitizer: heap-buffer-overflow" \
790 TEST(AddressSanitizer, pread) {
794 TEST(AddressSanitizer, pread64) {
798 TEST(AddressSanitizer, read) {
805 TEST(AddressSanitizer, DISABLED_MemIntrinsicUnalignedAccessTest) {
847 TEST(AddressSanitizer, DISABLED_LargeFunctionSymbolizeTest) {
855 TEST(AddressSanitizer, DISABLED_MallocFreeUnwindAndSymbolizeTest) {
904 TEST(AddressSanitizer, ThreadedTest) {
929 TEST(AddressSanitizer, ThreadNamesTest) {
938 TEST(AddressSanitizer, ShadowGapTest) {
948 EXPECT_DEATH(*addr = 1, "AddressSanitizer: SEGV on unknown");
961 TEST(AddressSanitizer, UseThenFreeThenUseTest) {
965 TEST(AddressSanitizer, StrDupTest) {
974 TEST(AddressSanitizer, GlobalTest) {
1023 TEST(AddressSanitizer, GlobalStringConstTest) {
1029 TEST(AddressSanitizer, FileNameInGlobalReportTest) {
1042 TEST(AddressSanitizer, LocalReferenceReturnTest) {
1048 EXPECT_DEATH(*p = 1, "AddressSanitizer: stack-use-after-return");
1078 TEST(AddressSanitizer, StressStackReuseTest) {
1082 TEST(AddressSanitizer, ThreadedStressStackReuseTest) {
1098 TEST(AddressSanitizer, PthreadExitTest) {
1115 TEST(AddressSanitizer, DISABLED_StressStackReuseAndExceptionsTest) {
1126 TEST(AddressSanitizer, MlockTest) {
1140 TEST(AddressSanitizer, LargeStructCopyTest) {
1152 TEST(AddressSanitizer, AttributeNoSanitizeAddressTest) {
1166 return string("AddressSanitizer: alloc-dealloc-mismatch \\(") + str;
1169 TEST(AddressSanitizer, AllocDeallocMismatch) {
1187 TEST(AddressSanitizer, DISABLED_DemoThreadedTest) {
1197 TEST(AddressSanitizer, DISABLED_DemoStackTest) {
1201 TEST(AddressSanitizer, DISABLED_DemoThreadStackTest) {
1207 TEST(AddressSanitizer, DISABLED_DemoUAFLowIn) {
1210 TEST(AddressSanitizer, DISABLED_DemoUAFLowLeft) {
1213 TEST(AddressSanitizer, DISABLED_DemoUAFLowRight) {
1217 TEST(AddressSanitizer, DISABLED_DemoUAFHigh) {
1221 TEST(AddressSanitizer, DISABLED_DemoOOM) {
1226 TEST(AddressSanitizer, DISABLED_DemoDoubleFreeTest) {
1230 TEST(AddressSanitizer, DISABLED_DemoNullDerefTest) {
1235 TEST(AddressSanitizer, DISABLED_DemoFunctionStaticTest) {
1247 TEST(AddressSanitizer, DISABLED_DemoTooMuchMemoryTest) {
1259 TEST(AddressSanitizer, BufferOverflowAfterManyFrees) {
1264 EXPECT_DEATH(x[Ident(8192)] = 0, "AddressSanitizer: heap-buffer-overflow");
1272 TEST(AddressSanitizer, LongDoubleNegativeTest) {
1280 TEST(AddressSanitizer, pthread_getschedparam) {
1285 "AddressSanitizer: stack-buffer-.*flow");
1288 "AddressSanitizer: stack-buffer-.*flow");
1304 TEST(AddressSanitizer, snprintf_l) {
1317 "AddressSanitizer: stack-buffer-overflow");
1320 "AddressSanitizer: stack-buffer-overflow");