Searched refs:unconst (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/lib/ |
H A D | strcat_kunit.c | 11 static volatile int unconst; variable 40 KUNIT_EXPECT_TRUE(test, strncat(dest, "", 0 + unconst) == dest); in strncat_test() 43 KUNIT_EXPECT_TRUE(test, strncat(dest, "", 1 + unconst) == dest); in strncat_test() 46 KUNIT_EXPECT_TRUE(test, strncat(dest, "asdf", 0 + unconst) == dest); in strncat_test() 50 KUNIT_EXPECT_TRUE(test, strncat(dest, "four\000123", 8 + unconst) == dest); in strncat_test() 55 KUNIT_EXPECT_TRUE(test, strncat(dest, "ABCD", 2 + unconst) == dest); in strncat_test() 62 int len = sizeof(dest) + unconst; in strlcat_test() 70 KUNIT_EXPECT_EQ(test, strlcat(dest, "four", 1 + unconst), 4); in strlcat_test() 80 KUNIT_EXPECT_EQ(test, strlcat(dest, "CD", 7 + unconst), 8); in strlcat_test()
|
H A D | overflow_kunit.c | 656 volatile int unconst = 0; in overflow_size_helpers_test() local 712 check_one_size_helper(0, flex_array_size, obj, data, 0 + unconst); in overflow_size_helpers_test() 714 flex_array_size, obj, data, 1 + unconst); in overflow_size_helpers_test() 716 flex_array_size, obj, data, 7 + unconst); in overflow_size_helpers_test() 718 flex_array_size, obj, data, -1 + unconst); in overflow_size_helpers_test() 720 flex_array_size, obj, data, SIZE_MAX - 4 + unconst); in overflow_size_helpers_test() 727 check_one_size_helper(sizeof(*obj), struct_size, obj, data, 0 + unconst); in overflow_size_helpers_test() 729 struct_size, obj, data, 1 + unconst); in overflow_size_helpers_test() 731 struct_size, obj, data, -3 + unconst); in overflow_size_helpers_test() 733 struct_size, obj, data, SIZE_MAX - 3 + unconst); in overflow_size_helpers_test()
|
/openbmc/linux/drivers/misc/lkdtm/ |
H A D | usercopy.c | 22 static volatile size_t unconst; variable 34 return stack + unconst; in trick_compiler() 92 unconst + sizeof(good_stack))) { in do_usercopy_stack() 99 unconst + sizeof(good_stack))) { in do_usercopy_stack() 113 unconst + sizeof(good_stack))) { in do_usercopy_stack() 120 unconst + sizeof(good_stack))) { in do_usercopy_stack() 140 size_t size = unconst + 1024; in do_usercopy_slab_size() 237 offset = (cache_size / 4) + unconst; in do_usercopy_slab_whitelist() 238 size = (cache_size / 16) + unconst; in do_usercopy_slab_whitelist() 326 unconst + sizeof(test_text))) { in lkdtm_USERCOPY_KERNEL() [all …]
|