Home
last modified time | relevance | path

Searched refs:dest_len (Results 1 – 1 of 1) sorted by relevance

/trusty/kernel/app/usercopytest/
Dusercopytest.c416 size_t dest_len; in usercopy_test_strlcpy_from_user_inner() local
433 dest_len = strnlen(dest_buf + TEST_BUF_COPY_START, TEST_BUF_COPY_SIZE); in usercopy_test_strlcpy_from_user_inner()
438 EXPECT_NE(TEST_BUF_COPY_SIZE, dest_len, " null_off=%d, copy_size=%d\n", in usercopy_test_strlcpy_from_user_inner()
444 EXPECT_EQ(TEST_BUF_COPY_SIZE, dest_len, " null_off=%d, copy_size=%d\n", in usercopy_test_strlcpy_from_user_inner()
446 dest_len = 0; in usercopy_test_strlcpy_from_user_inner()
453 EXPECT_EQ(0, checkbuf(dest_buf + TEST_BUF_COPY_START, SRC_DATA, dest_len), in usercopy_test_strlcpy_from_user_inner()
468 EXPECT_EQ(MIN(null_off - TEST_BUF_COPY_START, copy_len), dest_len, in usercopy_test_strlcpy_from_user_inner()
479 EXPECT_EQ(0, dest_len, " null_off=%d, copy_size=%d\n", null_off, in usercopy_test_strlcpy_from_user_inner()
481 } else if (dest_len) { in usercopy_test_strlcpy_from_user_inner()
482 EXPECT_EQ(MIN(TEST_BUF1_COPY_SIZE, copy_len), dest_len, in usercopy_test_strlcpy_from_user_inner()