-#define TEST_DONE(t,res) do { t->result = (res); kasan_handle_test(); } while (0)
-#define DECLARE_TEST(f,s) { .func = f, .name = s }
-#define DECLARE_TEST3(f,c,s) { .func = f, .cleanup = c, .name = s }
+#define TEST_DONE(t, res) do { t->result = (res); kasan_handle_test(); } while (0)
+#define DECLARE_TEST(f, s) { .func = f, .name = s }
+#define DECLARE_TEST3(f, c, s) { .func = f, .cleanup = c, .name = s }
static struct kasan_test xnu_tests[] = {
DECLARE_TEST(NULL, NULL),
DECLARE_TEST(test_global_overflow, "Global overflow"),
static struct kasan_test xnu_tests[] = {
DECLARE_TEST(NULL, NULL),
DECLARE_TEST(test_global_overflow, "Global overflow"),
- DECLARE_TEST3(test_heap_underflow, heap_cleanup, "Heap underflow"),
- DECLARE_TEST3(test_heap_overflow, heap_cleanup, "Heap overflow"),
- DECLARE_TEST(test_heap_uaf, "Heap use-after-free"),
+ DECLARE_TEST3(test_heap_underflow, heap_cleanup, "Heap underflow"),
+ DECLARE_TEST3(test_heap_overflow, heap_cleanup, "Heap overflow"),
+ DECLARE_TEST(test_heap_uaf, "Heap use-after-free"),
- DECLARE_TEST(test_stack_uaf, "Stack use-after-return"),
- DECLARE_TEST(test_memcpy, "memcpy"),
- DECLARE_TEST(test_memmove, "memmmove"),
- DECLARE_TEST(test_bcopy, "bcopy"),
- DECLARE_TEST(test_memset, "memset"),
- DECLARE_TEST(test_memcmp, "memcmp"),
- DECLARE_TEST(test_bcmp, "bcmp"),
- DECLARE_TEST(test_bzero, "bzero"),
- DECLARE_TEST(test_strlcpy, "strlcpy"),
- DECLARE_TEST(test_strlcat, "strlcat"),
- DECLARE_TEST(test_strncpy, "strncpy"),
- DECLARE_TEST(test_strncat, "strncat"),
- DECLARE_TEST(test_blacklist, "blacklist"),
- DECLARE_TEST(test_blacklist_str, "blacklist_str"),
- DECLARE_TEST(test_fakestack, "fakestack"),
+ DECLARE_TEST(test_stack_uaf, "Stack use-after-return"),
+ DECLARE_TEST(test_memcpy, "memcpy"),
+ DECLARE_TEST(test_memmove, "memmmove"),
+ DECLARE_TEST(test_bcopy, "bcopy"),
+ DECLARE_TEST(test_memset, "memset"),
+ DECLARE_TEST(test_memcmp, "memcmp"),
+ DECLARE_TEST(test_bcmp, "bcmp"),
+ DECLARE_TEST(test_bzero, "bzero"),
+ DECLARE_TEST(test_strlcpy, "strlcpy"),
+ DECLARE_TEST(test_strlcat, "strlcat"),
+ DECLARE_TEST(test_strncpy, "strncpy"),
+ DECLARE_TEST(test_strncat, "strncat"),
+ DECLARE_TEST(test_blacklist, "blacklist"),
+ DECLARE_TEST(test_blacklist_str, "blacklist_str"),
+ DECLARE_TEST(test_fakestack, "fakestack"),