Lines Matching refs:ASSERT_FORTIFY
32 #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "FORTIFY") macro
34 #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "") macro
56 ASSERT_FORTIFY(stpncpy(myfoo.a, "01234567890", copy_amt)); in TEST_F()
63 ASSERT_FORTIFY(stpncpy(myfoo.b, myfoo.one, sizeof(myfoo.b))); in TEST_F()
69 ASSERT_FORTIFY(strncpy(myfoo.a, "01234567890", copy_amt)); in TEST_F()
76 ASSERT_FORTIFY(strncpy(myfoo.b, myfoo.one, sizeof(myfoo.b))); in TEST_F()
83 ASSERT_FORTIFY(sprintf(myfoo.a, "%s", source_buf)); in TEST_F()
88 ASSERT_FORTIFY(sprintf(myfoo.a, "0123456789")); in TEST_F()
103 ASSERT_FORTIFY(vsprintf_helper2("%s", "0123456789")); in TEST_F()
107 ASSERT_FORTIFY(vsprintf_helper2("0123456789")); in TEST_F()
123 ASSERT_FORTIFY(vsnprintf_helper2("%s", "0123456789")); in TEST_F()
127 ASSERT_FORTIFY(vsnprintf_helper2("0123456789")); in TEST_F()
135 ASSERT_FORTIFY(stpcpy(myfoo.empty, src)); in TEST_F()
147 ASSERT_FORTIFY(strcpy(myfoo.empty, src)); in TEST_F()
159 ASSERT_FORTIFY(strcpy(myfoo.empty, src)); in TEST_F()
171 ASSERT_FORTIFY(strcpy(myfoo.one, src)); in TEST_F()
183 ASSERT_FORTIFY(printf("%s", strchr(myfoo.a, 'a'))); in TEST_F()
184 ASSERT_FORTIFY(printf("%s", strchr(static_cast<const char*>(myfoo.a), 'a'))); in TEST_F()
195 ASSERT_FORTIFY(printf("%s", strrchr(myfoo.a, 'a'))); in TEST_F()
196 ASSERT_FORTIFY(printf("%s", strrchr(static_cast<const char*>(myfoo.a), 'a'))); in TEST_F()
207 ASSERT_FORTIFY(printf("%s", memchr(myfoo.a, 'a', asize))); in TEST_F()
208 ASSERT_FORTIFY(printf("%s", memchr(static_cast<const void*>(myfoo.a), 'a', asize))); in TEST_F()
219 ASSERT_FORTIFY(printf("%s", memrchr(myfoo.a, 'a', asize))); in TEST_F()
220 ASSERT_FORTIFY(printf("%s", memrchr(static_cast<const void*>(myfoo.a), 'a', asize))); in TEST_F()
231 ASSERT_FORTIFY(strlcpy(myfoo.one, myfoo.a, n)); in TEST_F()
243 ASSERT_FORTIFY(strlcat(myfoo.one, myfoo.a, n)); in TEST_F()
253 ASSERT_FORTIFY(strncat(myfoo.a, "9", n)); in TEST_F()
260 ASSERT_FORTIFY(strncat(myfoo.a, "0123456789", n)); in TEST_F()
268 ASSERT_FORTIFY(strncat(myfoo.b, myfoo.a, n)); in TEST_F()
276 ASSERT_FORTIFY(strcat(myfoo.a, src)); in TEST_F()
283 ASSERT_FORTIFY(strcat(myfoo.b, myfoo.a)); in TEST_F()
290 ASSERT_FORTIFY(snprintf(myfoo.b, n, "a%s", myfoo.a)); in TEST_F()
297 ASSERT_FORTIFY(bzero(myfoo.b, n)); in TEST_F()
307 ASSERT_FORTIFY(strcpy(buf, orig)); in TEST_F()
319 ASSERT_FORTIFY(strcpy(buf, orig)); in TEST_F()
331 ASSERT_FORTIFY(strcpy(buf, orig)); in TEST_F()
343 ASSERT_FORTIFY(strcpy(buf, orig)); in TEST_F()
354 ASSERT_FORTIFY(printf("%zd", strlen(buf))); in TEST_F()
364 ASSERT_FORTIFY(printf("%s", strchr(buf, 'a'))); in TEST_F()
374 ASSERT_FORTIFY(printf("%s", strrchr(buf, 'a'))); in TEST_F()
386 ASSERT_FORTIFY(strlcpy(bufb, bufa, n)); in TEST_F()
399 ASSERT_FORTIFY(strlcat(bufb, bufa, n)); in TEST_F()
409 ASSERT_FORTIFY(sprintf(buf, "%s", source_buf)); in TEST_F()
419 ASSERT_FORTIFY(sprintf(buf, "%s", source_buf)); in TEST_F()
426 ASSERT_FORTIFY(sprintf(buf, "aaaaa")); in TEST_F()
441 ASSERT_FORTIFY(vsprintf_helper("%s", "0123456789")); in TEST_F()
445 ASSERT_FORTIFY(vsprintf_helper("0123456789")); in TEST_F()
461 ASSERT_FORTIFY(vsnprintf_helper("%s", "0123456789")); in TEST_F()
465 ASSERT_FORTIFY(vsnprintf_helper("0123456789")); in TEST_F()
472 ASSERT_FORTIFY(strncat(buf, "9", n)); in TEST_F()
479 ASSERT_FORTIFY(strncat(buf, "0123456789", n)); in TEST_F()
487 ASSERT_FORTIFY(strcat(buf, src)); in TEST_F()
494 ASSERT_FORTIFY(memmove(buf + 11, buf, n)); in TEST_F()
502 ASSERT_FORTIFY(memcpy(bufb, bufa, n)); in TEST_F()
508 ASSERT_FORTIFY(memset(buf, 0, n)); in TEST_F()
516 ASSERT_FORTIFY(stpncpy(bufb, bufa, n)); in TEST_F()
523 ASSERT_FORTIFY(stpncpy(dest, src, sizeof(dest))); in TEST_F()
531 ASSERT_FORTIFY(strncpy(bufb, bufa, n)); in TEST_F()
539 ASSERT_FORTIFY(strncpy(dest, src, sizeof(dest))); in TEST_F()
547 ASSERT_FORTIFY(snprintf(bufb, n, "%s", bufa)); in TEST_F()
554 ASSERT_FORTIFY(bzero(buf, n)); in TEST_F()
559 ASSERT_FORTIFY(umask(mask)); in TEST_F()
565 ASSERT_FORTIFY(recv(0, buf, data_len, 0)); in TEST_F()
571 ASSERT_FORTIFY(send(0, buf, data_len, 0)); in TEST_F()
578 ASSERT_FORTIFY(FD_ISSET(-1, &set)); in TEST_F()
585 ASSERT_FORTIFY(FD_ISSET(0, set)); in TEST_F()
591 ASSERT_FORTIFY(getcwd(buf, ct)); in TEST_F()
598 ASSERT_FORTIFY(pread(fd, buf, ct, 0)); in TEST_F()
606 ASSERT_FORTIFY(pread64(fd, buf, ct, 0)); in TEST_F()
614 ASSERT_FORTIFY(pwrite(fd, buf, ct, 0)); in TEST_F()
622 ASSERT_FORTIFY(pwrite64(fd, buf, ct, 0)); in TEST_F()
630 ASSERT_FORTIFY(read(fd, buf, ct)); in TEST_F()
646 ASSERT_FORTIFY(fread(buf, 1, ct, fp)); in TEST_F()
654 ASSERT_FORTIFY(fwrite(buf, 1, ct, fp)); in TEST_F()
661 ASSERT_FORTIFY(readlink("/dev/null", buf, ct)); in TEST_F()
667 ASSERT_FORTIFY(readlinkat(AT_FDCWD, "/dev/null", buf, ct)); in TEST_F()
997 ASSERT_FORTIFY(poll(buf, fd_count, 0)); in TEST_F()
1006 ASSERT_FORTIFY(ppoll(buf, fd_count, &timeout, nullptr)); in TEST_F()
1016 ASSERT_FORTIFY(ppoll64(buf, fd_count, &timeout, nullptr)); in TEST_F()
1022 ASSERT_FORTIFY(open("", flags)); in TEST_F()
1028 ASSERT_FORTIFY(open("", flags)); in TEST_F()