Searched refs:inbounds (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/security/apparmor/ |
D | policy_unpack.c | 201 static bool inbounds(struct aa_ext *e, size_t size) in inbounds() function 227 if (!inbounds(e, sizeof(u16))) in unpack_u16_chunk() 231 if (!inbounds(e, size)) in unpack_u16_chunk() 245 if (!inbounds(e, 1)) in unpack_X() 304 if (!inbounds(e, sizeof(u8))) in unpack_u8() 322 if (!inbounds(e, sizeof(u32))) in unpack_u32() 340 if (!inbounds(e, sizeof(u64))) in unpack_u64() 359 if (!inbounds(e, sizeof(u16))) in unpack_array() 377 if (!inbounds(e, sizeof(u32))) in unpack_blob() 381 if (inbounds(e, (size_t) size)) { in unpack_blob()
|
D | policy_unpack_test.c | 128 KUNIT_EXPECT_TRUE(test, inbounds(puf->e, 0)); in policy_unpack_test_inbounds_when_inbounds() 129 KUNIT_EXPECT_TRUE(test, inbounds(puf->e, puf->e_size / 2)); in policy_unpack_test_inbounds_when_inbounds() 130 KUNIT_EXPECT_TRUE(test, inbounds(puf->e, puf->e_size)); in policy_unpack_test_inbounds_when_inbounds() 137 KUNIT_EXPECT_FALSE(test, inbounds(puf->e, puf->e_size + 1)); in policy_unpack_test_inbounds_when_out_of_bounds()
|