Lines Matching refs:ASSERT_FORTIFY

40 #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "FORTIFY")  macro
42 #define ASSERT_FORTIFY(expr) ASSERT_EXIT(expr, testing::KilledBySignal(SIGABRT), "") macro
67 ASSERT_FORTIFY(stpncpy(myfoo.a, "01234567890", copy_amt)); in TEST_F()
78 ASSERT_FORTIFY(stpncpy(myfoo.b, myfoo.one, sizeof(myfoo.b))); in TEST_F()
88 ASSERT_FORTIFY(strncpy(myfoo.a, "01234567890", copy_amt)); in TEST_F()
99 ASSERT_FORTIFY(strncpy(myfoo.b, myfoo.one, sizeof(myfoo.b))); in TEST_F()
110 ASSERT_FORTIFY(sprintf(myfoo.a, "%s", source_buf)); in TEST_F()
119 ASSERT_FORTIFY(sprintf(myfoo.a, "0123456789")); in TEST_F()
138 ASSERT_FORTIFY(vsprintf_helper2("%s", "0123456789")); in TEST_F()
142 ASSERT_FORTIFY(vsprintf_helper2("0123456789")); in TEST_F()
162 ASSERT_FORTIFY(vsnprintf_helper2("%s", "0123456789")); in TEST_F()
166 ASSERT_FORTIFY(vsnprintf_helper2("0123456789")); in TEST_F()
178 ASSERT_FORTIFY(stpcpy(myfoo.empty, src)); in TEST_F()
194 ASSERT_FORTIFY(strcpy(myfoo.empty, src)); in TEST_F()
210 ASSERT_FORTIFY(strcpy(myfoo.empty, src)); in TEST_F()
226 ASSERT_FORTIFY(strcpy(myfoo.one, src)); in TEST_F()
242 ASSERT_FORTIFY(printf("%s", strchr(myfoo.a, 'a'))); in TEST_F()
257 ASSERT_FORTIFY(printf("%s", strrchr(myfoo.a, 'a'))); in TEST_F()
272 ASSERT_FORTIFY(strlcpy(myfoo.one, myfoo.a, n)); in TEST_F()
288 ASSERT_FORTIFY(strlcat(myfoo.one, myfoo.a, n)); in TEST_F()
302 ASSERT_FORTIFY(strncat(myfoo.a, "9", n)); in TEST_F()
313 ASSERT_FORTIFY(strncat(myfoo.a, "0123456789", n)); in TEST_F()
322 ASSERT_FORTIFY(strncat(myfoo.b, myfoo.a, n)); in TEST_F()
333 ASSERT_FORTIFY(strcat(myfoo.a, src)); in TEST_F()
341 ASSERT_FORTIFY(strcat(myfoo.b, myfoo.a)); in TEST_F()
348 ASSERT_FORTIFY(snprintf(myfoo.b, n, "a%s", myfoo.a)); in TEST_F()
355 ASSERT_FORTIFY(bzero(myfoo.b, n)); in TEST_F()
365 ASSERT_FORTIFY(strcpy(buf, orig)); in TEST_F()
377 ASSERT_FORTIFY(strcpy(buf, orig)); in TEST_F()
389 ASSERT_FORTIFY(strcpy(buf, orig)); in TEST_F()
401 ASSERT_FORTIFY(strcpy(buf, orig)); in TEST_F()
412 ASSERT_FORTIFY(printf("%zd", strlen(buf))); in TEST_F()
422 ASSERT_FORTIFY(printf("%s", strchr(buf, 'a'))); in TEST_F()
432 ASSERT_FORTIFY(printf("%s", strrchr(buf, 'a'))); in TEST_F()
444 ASSERT_FORTIFY(strlcpy(bufb, bufa, n)); in TEST_F()
457 ASSERT_FORTIFY(strlcat(bufb, bufa, n)); in TEST_F()
467 ASSERT_FORTIFY(sprintf(buf, "%s", source_buf)); in TEST_F()
477 ASSERT_FORTIFY(sprintf(buf, "%s", source_buf)); in TEST_F()
484 ASSERT_FORTIFY(sprintf(buf, "aaaaa")); in TEST_F()
499 ASSERT_FORTIFY(vsprintf_helper("%s", "0123456789")); in TEST_F()
503 ASSERT_FORTIFY(vsprintf_helper("0123456789")); in TEST_F()
519 ASSERT_FORTIFY(vsnprintf_helper("%s", "0123456789")); in TEST_F()
523 ASSERT_FORTIFY(vsnprintf_helper("0123456789")); in TEST_F()
530 ASSERT_FORTIFY(strncat(buf, "9", n)); in TEST_F()
537 ASSERT_FORTIFY(strncat(buf, "0123456789", n)); in TEST_F()
545 ASSERT_FORTIFY(strcat(buf, src)); in TEST_F()
552 ASSERT_FORTIFY(memmove(buf + 11, buf, n)); in TEST_F()
560 ASSERT_FORTIFY(memcpy(bufb, bufa, n)); in TEST_F()
568 ASSERT_FORTIFY(stpncpy(bufb, bufa, n)); in TEST_F()
575 ASSERT_FORTIFY(stpncpy(dest, src, sizeof(dest))); in TEST_F()
583 ASSERT_FORTIFY(strncpy(bufb, bufa, n)); in TEST_F()
591 ASSERT_FORTIFY(strncpy(dest, src, sizeof(dest))); in TEST_F()
599 ASSERT_FORTIFY(snprintf(bufb, n, "%s", bufa)); in TEST_F()
606 ASSERT_FORTIFY(bzero(buf, n)); in TEST_F()
611 ASSERT_FORTIFY(umask(mask)); in TEST_F()
617 ASSERT_FORTIFY(recv(0, buf, data_len, 0)); in TEST_F()
624 ASSERT_FORTIFY(FD_ISSET(-1, &set)); in TEST_F()
631 ASSERT_FORTIFY(FD_ISSET(0, set)); in TEST_F()
637 ASSERT_FORTIFY(getcwd(buf, ct)); in TEST_F()
644 ASSERT_FORTIFY(pread(fd, buf, ct, 0)); in TEST_F()
652 ASSERT_FORTIFY(pread64(fd, buf, ct, 0)); in TEST_F()
660 ASSERT_FORTIFY(pwrite(fd, buf, ct, 0)); in TEST_F()
668 ASSERT_FORTIFY(pwrite64(fd, buf, ct, 0)); in TEST_F()
676 ASSERT_FORTIFY(read(fd, buf, ct)); in TEST_F()
692 ASSERT_FORTIFY(fread(buf, 1, ct, fp)); in TEST_F()
700 ASSERT_FORTIFY(fwrite(buf, 1, ct, fp)); in TEST_F()
707 ASSERT_FORTIFY(readlink("/dev/null", buf, ct)); in TEST_F()
713 ASSERT_FORTIFY(readlinkat(AT_FDCWD, "/dev/null", buf, ct)); in TEST_F()
1025 ASSERT_FORTIFY(poll(buf, fd_count, 0)); in TEST_F()
1034 ASSERT_FORTIFY(ppoll(buf, fd_count, &timeout, NULL)); in TEST_F()