Searched refs:unconst (Results 1 - 4 of 4) sorted by relevance
/linux-master/lib/ |
H A D | strcat_kunit.c | 11 static volatile int unconst; variable 40 KUNIT_EXPECT_TRUE(test, strncat(dest, "", 0 + unconst) == dest); 43 KUNIT_EXPECT_TRUE(test, strncat(dest, "", 1 + unconst) == dest); 46 KUNIT_EXPECT_TRUE(test, strncat(dest, "asdf", 0 + unconst) == dest); 50 KUNIT_EXPECT_TRUE(test, strncat(dest, "four\000123", 8 + unconst) == dest); 55 KUNIT_EXPECT_TRUE(test, strncat(dest, "ABCD", 2 + unconst) == dest); 62 int len = sizeof(dest) + unconst; 70 KUNIT_EXPECT_EQ(test, strlcat(dest, "four", 1 + unconst), 4); 80 KUNIT_EXPECT_EQ(test, strlcat(dest, "CD", 7 + unconst), 8);
|
H A D | fortify_kunit.c | 362 static volatile int unconst; variable 497 sizeof(pad.buf) + unconst - 1) 507 sizeof(pad.buf) + unconst) 519 sizeof(pad.buf) + unconst + 1) 531 sizeof(pad.buf) + unconst + 2) 556 sizeof(pad.buf) + unconst - 1), 566 sizeof(pad.buf) + unconst), 576 sizeof(pad.buf) + unconst + 1), 588 sizeof(src) * 2 + unconst), 734 int len = sizeof(pad.buf) + unconst; [all...] |
H A D | overflow_kunit.c | 714 volatile int unconst = 0; local 770 check_one_size_helper(0, flex_array_size, obj, data, 0 + unconst); 772 flex_array_size, obj, data, 1 + unconst); 774 flex_array_size, obj, data, 7 + unconst); 776 flex_array_size, obj, data, -1 + unconst); 778 flex_array_size, obj, data, SIZE_MAX - 4 + unconst); 785 check_one_size_helper(sizeof(*obj), struct_size, obj, data, 0 + unconst); 787 struct_size, obj, data, 1 + unconst); 789 struct_size, obj, data, -3 + unconst); 791 struct_size, obj, data, SIZE_MAX - 3 + unconst); [all...] |
/linux-master/drivers/misc/lkdtm/ |
H A D | usercopy.c | 19 * hardened usercopy checks by added "unconst" to all the const copies, 22 static volatile size_t unconst; variable 34 return stack + unconst; 92 unconst + sizeof(good_stack))) { 99 unconst + sizeof(good_stack))) { 113 unconst + sizeof(good_stack))) { 120 unconst + sizeof(good_stack))) { 140 size_t size = unconst + 1024; 237 offset = (cache_size / 4) + unconst; 238 size = (cache_size / 16) + unconst; [all...] |
Completed in 173 milliseconds