Lines Matching refs:haystack
919 char haystack[] = "Where oh where is my memory range?"; in __fortify_test() local
920 char *mem = haystack + strlen("Where oh where is "); in __fortify_test()
922 size_t len = sizeof(haystack) + unconst; in __fortify_test()
924 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len), in __fortify_test()
928 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len + 1), in __fortify_test()
931 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len * 2), in __fortify_test()
938 char haystack[] = "Where oh where is my memory range?"; in fortify_test_memchr() local
939 char *mem = haystack + strlen("Where oh where is "); in fortify_test_memchr()
941 size_t len = sizeof(haystack) + unconst; in fortify_test_memchr()
943 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len), in fortify_test_memchr()
947 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len + 1), in fortify_test_memchr()
950 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len * 2), in fortify_test_memchr()
957 char haystack[] = "Where oh where is my memory range?"; in fortify_test_memchr_inv() local
958 char *mem = haystack + 1; in fortify_test_memchr_inv()
960 size_t len = sizeof(haystack) + unconst; in fortify_test_memchr_inv()
963 KUNIT_ASSERT_PTR_EQ(test, memchr_inv(haystack, needle, len), in fortify_test_memchr_inv()
967 KUNIT_ASSERT_PTR_EQ(test, memchr_inv(haystack, needle, len + 1), in fortify_test_memchr_inv()
970 KUNIT_ASSERT_PTR_EQ(test, memchr_inv(haystack, needle, len * 2), in fortify_test_memchr_inv()